====== Solaris Frequently Asked Questions ======
| Q. | How do I change the default passwords of my Accelerator?|
| A. | See this page: [[accelerators:kb:change-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/ -m -s /usr/bin/bash |
| 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/ -m -g staff -s /usr/bin/bash This newly created user will be allowed to ''sudo'' just like the default ''admin'' user account.|
| Q. | How do I change the shell for a user?|
| A. | As the admin user, execute sudo usermod -s /bin/bash It is also possible to directly edit ''/etc/passwd'', where this information is stored, in your favorite editor. For instance, you might change the line: joyent:x:1001:1::/home/joyent:/bin/sh to: joyent:x:1001:1::/home/joyent:/bin/bash However entering by hand can bring about the risk of introducing typos. If you decide to edit ''/etc/passwd'', its a good idea to execute ''pwck'' immediately after saving your edits, to validate your changes. |
| Q. | What is the Solaris equivalent to command //foo// from UNIX-like Operating System //bar//? |
| A. | Check the [[http://bhami.com/rosetta.html | 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 [[accelerators:kb:webmin#removing|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. | The asterisk on the end it just telling you that the file permissions for that file includes executable. It is not part of the file name.
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... =====
* [[http://opensolaris.org/os/community/documentation/newbie_faq/|Solaris Newbie FAQ]]