修改目录权限
chmod
命令用于修改文件权限。
[root@sylixos:/root]# ll
drwxr-xr-- root root Thu May 25 10:24:15 2023 sylixos/
drwxr-xr-- root root Thu May 25 09:42:45 2023 test/
-rw-r--r-- root root Sun Jan 02 08:09:59 2000 5 B, BSPUPDATE
-rw-rw-rw- root root Sat Jan 01 08:16:56 2000 18 B, a
total items: 4
[root@sylixos:/root]# chmod 777 sylixos
[root@sylixos:/root]# ll
drwxrwxrwx root root Thu May 25 10:24:15 2023 sylixos/
drwxr-xr-- root root Thu May 25 09:42:45 2023 test/
-rw-r--r-- root root Sun Jan 02 08:09:59 2000 5 B, BSPUPDATE
-rw-rw-rw- root root Sat Jan 01 08:16:56 2000 18 B, a
total items: 4