将a目录的所有人的权限变为rwx,并验证效果
使用chmod命令进行权限设置:
chmod u=rwx a
[root@s142 tmp]# mkdir a
[root@s142 tmp]# chmod 777 a
[root@s142 tmp]# su wuhs
[wuhs@s142 tmp]$ cd a
[wuhs@s142 a]$ touch 1.txt
[wuhs@s142 a]$ exit
exit
[root@s142 tmp]# su - bdsc
[bdsc@s142 ~]$ cd a
-bash: cd: a: No such file or directory
[bdsc@s142 ~]$ cd /tmp/a
[bdsc@s142 a]$ touch 2.txt
[bdsc@s142 a]$ ll
total 0
-rw-rw-r--. 1 wuhs wuhs 0 Dec 21 20:31 1.txt
-rw-rw-r--. 1 bdsc bdsc 0 Dec 21 20:32 2.txt