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
?