用户组
# groupadd hr
# groupadd sale # groupadd it # groupadd net01 -g 2000 添加组net01,并指定gid 2000 # groupdel net01 删除组net01 # grep 'net01' /etc/group 查看/etc/group中组net01信息
<a href="http://blog.51cto.com/attachment/201310/145829412.png" target="_blank"></a>
用户
# useradd user01
<a href="http://blog.51cto.com/attachment/201310/160322971.png" target="_blank"></a>
[root@station230 ~]# gpasswd -d user07 it //删除用户usr07从it组
<a href="http://blog.51cto.com/attachment/201310/160938229.png" target="_blank"></a>
user1000:$1$Hw2wCJoe$FU91eSBsBx1W0CGdIhTwh/:15775:0:99999:7:::
<a href="http://blog.51cto.com/attachment/201310/161916627.png" target="_blank"></a>
登录测试
<a href="http://blog.51cto.com/attachment/201310/162856792.png" target="_blank"></a>
3. /etc/skel/* 用户的初始配置文件
<a href="http://blog.51cto.com/attachment/201310/164158222.png" target="_blank"></a>
-rw-r--r-- 1 alice it 17 10-25 16:45 file1
<a href="http://blog.51cto.com/attachment/201310/164535851.png" target="_blank"></a>
[root@station230 ~]# umask
<a href="http://blog.51cto.com/attachment/201310/165307145.png" target="_blank"></a>
<a href="http://blog.51cto.com/attachment/201310/170720489.png" target="_blank"></a>
<a href="http://blog.51cto.com/attachment/201310/170855640.png" target="_blank"></a>
[root@station230 ~]# setfacl -m d:u:jack:rwx /home/dir100
------------- file200.txt
<a href="http://blog.51cto.com/attachment/201310/172108123.png" target="_blank"></a>
本文转自zhang25yun51CTO博客,原文链接: http://blog.51cto.com/1585654/1305163,如需转载请自行联系原作者