Learn 、、、、 with a silly kiss (Simple file permissions)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.