读书人

Linux资料权限chmod

发布时间: 2013-07-09 09:50:48 作者: rapoo

Linux文件权限,chmod
$ chmod 755 ~/testfile$ chmod u=rwx,go=rx ~/testfile

$ chmod a+w ~/testfile

$ chmod 4755 ~/testfile //testfile原权限为755$ chomd u+s ~/testfile

?

4用2种模式,给路径加入sgid权限。常用于群组中用户间数据的共享

$ chomd 2755 ~/testpath/           //testpath原权限为755$ chmod g+s ~/testpath/

?

5 用2种模式,给路径加入sbit权限

$ chmod 1755 ~/testpath            //tsetpath原权限为755$ chmod o+t ~/testpath

?

读书人网 >UNIXLINUX

热点推荐