天天看點

第三天------------day 3

使用者組

# 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,如需轉載請自行聯系原作者