CentOS文件和目录权限实战讲解
时间:2015-03-23 05:34 来源:linux.it.net.cn 作者:IT
[root@localhost ~]# useradd user1
[root@localhost ~]# useradd user2
[root@localhost ~]# mkdir -p /user1 /user2
[root@localhost ~]# su - user1
[root@localhost /]# touch /user2/user2
[root@localhost /]# ls -l /user2/user2
-rw-r--r--. 1 root root 0 3月 20 01:37 /user2/user2
[root@localhost /]# ls -l /user2/user2
-rwxr--rwx. 1 root root 0 3月 20 01:37 /user2/user2
[user1@localhost user2]$ rm -rf user2
rm: 无法删除"user2": 权限不够
[root@localhost /]# ls -ld /user2
drwxr--rwx. 2 root root 4096 3月 20 01:37 /user2
[user1@localhost user2]$ rm -rf user2
(责任编辑:IT)
(责任编辑:IT) |