权限-2

实例

groupadd edu
groupadd yxl
groupadd tech
useradd -g tech -G yxl jerry
useradd -g tech -G yxl kim
useradd -g tech -G yxl amy
useradd -g tech -G yxl hohn
useradd -g edu -G yxl tansir
useradd -g edu -G yxl zhaosir
userdel -r hohn
useradd -g tech -G yxl john

chown .yxl /yxl
chown .tech /yxl/tech
chown .edu /yxl/edu
ll /yxl
ll /yxl/
ll-d /yxl/
ll -d /yxl/
chmod -R 770 /yxl/
chmod .yxl /public/
chown .yxl /public/
chmod 770 /public/
cat /etc/passwd
cat tail -6 /etc/passwd
tail -6 /etc/passwd
useradd test
原文地址:https://www.cnblogs.com/yxlll/p/13879754.html