File Rights Management
distinguish file type; ls-d file view first field;
-Indicates that the normal file L is represented as a soft connection file D as a directory
S is represented as a socket file B as a block device file C represented as a serial device file, such as a mouse keyboard
ls-l The current file or directory permission bit is listed when viewing a file to-rwxrwxrwx display permissions for a file or directory
file attributes; Change file properties chown-r User: Group file or directory
chomd Change file permissions: chmod-Options file or directory
The permissions are the owner, the owning group, and others.
permission bit detailed: Rwx=4+2+1
r=4 w=2 x=1
View File contents modify file contents Execute program or script to file permission representation
View directories or subdirectories for directory permissions new move delete Execute command enter or exit directory
such as: Give the Xiang file as root all rights, the user group can only see and execute other people do not have any permissions
chomd-750 Xiang, directory same settings
special file permission bit; chattr [options] file or directory
permission setting: + Add privilege bit-reduce privilege bit
A: After adding this attribute, the atime of the file or directory
A: After adding this property, only the content can be appended and cannot be deleted
S: When this property is added, data will be synchronized to disk
C: After adding this attribute, automatically compress the file, automatically unzip when read
I: After adding this attribute, the file will not be able to write, delete, rename and set the link
SillyKiss ,I'mjustAskYou'refearNofear650) this.width=650; "src=" Http://www.acgcommittee.com/static/image/smiley/tsj/tsj55.gif "style=" Color:rgb ( 102,102,102); Font-family:tahoma, Helvetica, SimSun, Sans-serif;font-size:14px;line-height:21px;white-space:normal ; Background-color:rgb (255,255,255); "border=" 0 "/>
This article from "Linux Nest" blog, declined reprint!
Learn 、、、、 with a silly kiss (Simple file permissions)