Command line is still the best option for doing many stuff in Solaris. It gives so much flexibility!
For adding a group "dba" with groupid "100", the command is->
groupadd –g 100 dba
For adding a user "applmgr" with userid "101" in group "dba" with shell "/bin/sh" and default home directory "/export/home/applmgr", use the following command->
useradd -u 101 -g dba -s /bin/sh -c "applmgr user" -d /export/home/applmgr -m applmgr
The -m option creates the directory if it does not exists.
No comments:
Post a Comment