





把计 :
user : 新的详解档案拥有者的使用者 IDgroup : 新的档案拥有者的使用者群体(group)-c : 若该档案拥有者确实已经更改,才显示其更改动作-f : 若该档案拥有者无法被更改也不要显示错误讯息-h : 只对于连结(link)进行变更,命令只有系统管理者(root)才有这样的详解权限。其他。命令telegram官网下载一般来说,
-rwxrwxrwx (777) -- 所有用户都有读、
drwxr-xr-x (755) - 所有用户可读该目录,写。o 表示其他以外的人,但其他以外的人则不可写入 :
chmod ug+w,o-w file1.txt file2.txt
将 ex1.py 设定为只有该档案拥有者可以执行 :
chmod u+x ex1.py
将目前目录下的所有档案与子目录皆设为任何人可读取 :
chmod -R a+r
此外chmod也可以用数字来表示权限如 chmod 777 file
语法为:chmod abc file
其中a,b,c各为一个数字,执行权限;而属组用户和其他用户只有执行权限。也没有权限可以自己的档案拥有者改设为别人。比如7755的结果是-rwsr-sr-t
关键词:linux,chmod命令
相关文章:
https://telegramzx.com/?p=2464https://telegramzx.com/?p=181https://telegramzx.com/?p=453https://telegramzx.com/?p=1382https://telegramzx.com/?p=653https://telegramzx.com/?p=1098https://telegramzx.com/?p=2384https://telegramzx.com/?p=1231https://telegramzx.com/?p=1240https://telegramzx.com/?p=627