2010年5月24日 星期一

[Solaris]create group/user

最近會整理一些solaris的基本設定與操作
就順便記在這裡好了
-------------------------------------------------------------------------------------
1.Create group
Command: groupadd [-g gid] group
Related File: /etc/group
#groupadd -g 2001 RD

2.Create user
Command: useradd [-u uid | -g group] | -d dir | -s shell | -c comment | -m [-k skel_dir] ] username
Related File: /etc/passwd
#useradd -u 2002 -g RD -d /export/home/william -c “Engineer” -m -s /bin/sh william

3.Change password
Command: passwd username
#passwd william

沒有留言:

張貼留言