


chmod语法说明
修改文件夹属性命令:
去掉当前文件夹下目录及文件other的可读写执行权限
cleartool>protect -chmod 770 .\*.*
去掉当前文件夹及其目录、子目录、所有文件other的可读写执行权限
cleartool>protect -r -chmod 770 .\*
修改一个文件夹及其以下子目录、文件的owner、group
cleartool>protect -r -chown ccadm .\*
cleartool>protect -r –chgrp uniview .\*
语法规则:chmod [-cfvr][-help][--version]
chmod 也可以用数字来表示chmod 777 file
chmod abc file(a,b,c为一个数字,表示user,Group,other的权限)。
可读(r)可写(w)可执行(x)用数字表示r=4,w=2,x=1
例如:
Chmod a=rwx file==chmod 777 file 表示所有用户可读可写可执行。
Chmod ug=rwx ,o=x file==chmod 771表示other用户不可读写可以执行。
Chmod 770表示other用户不可读写执行。
大家来看看我写的有什么不对的请跟帖指正!
搜索更多相关主题的帖子:
chmod 语法