Joyent

Solaris Frequently Asked Questions

Q. How do I change the default passwords of my Accelerator?
A. See this page: Changing Default Accelerator Passwords
Q. May I change the host name of my Accelerator (and how)?
A. Yes. Edit the files /etc/hosts and /etc/nodename from the Joyent accelerator ID (like z00000AA.textdrive.com) to your own host name. You will need to set up DNS to make sure that the host name you enter is pointing at your Accelerator.
Q. I don’t want to set up my web application under the admin user. What’s the best way to create a new user?
A. As the admin user, try
sudo useradd -d /home/<username> -m -s /usr/bin/bash <username>
Q. How do I add a new administrative user?
A. Run useradd as above, but specify a group of staff, like so:
sudo useradd -d /home/<username> -m -g staff -s /usr/bin/bash <username>

This newly created user will be allowed to sudo just like the default admin user account.

Q. What is the Solaris equivalent to command foo from UNIX-like Operating System bar?
A. Check the Rosetta Stone for Unix
Q. How do I disable Webmin, which is installed and running by default?
A. Run the following command:
sudo svcadm disable svc:/application/webmin:default

which will prevent SMF from starting Webmin. It is also possible to uninstall Webmin, and permanently remove its SMF manifest by following the instructions for removing Webmin.

Q. How do I find sockstat on Solaris? (How to see what ports are open on my machine and what application has them open)
A.
ptree -a |awk '{print $1}' |xargs sudo pfiles |egrep '(^[0-9]|SOCK|peername|sockname)'

run it as admin and enter admin’s password when prompted

Q. What does the asterisk at the end of a file mean?
A.

So lets see that in action: Start out with empty directory

$ ls -lrt
total 0

create a file and see how it looks:

$ touch abc.xyz
$ ls -lrt
total 1
-rw-r--r--   1 linda    linda          0 Oct  8 22:43 abc.xyz

Add the executable bit, there is the *

$ chmod o+x abc.xyz 
$ ls -lrt
total 1
-rw-r--r-x   1 linda    linda          0 Oct  8 22:43 abc.xyz*

remove the executable bit, there it goes

$ chmod o-x abc.xyz 
$ ls -lrt
total 1
-rw-r--r--   1 linda    linda          0 Oct  8 22:43 abc.xyz

|


See Also...

 
solaris/kb/faqs.txt · Last modified: 2008/02/04 12:17 by alexbcoles
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki