Linux CentOS permissions view, modify

Source: Internet
Author: User
Tags readable

1. Permissions View Ls-l
2. Letter R (Readable): W (writable): X (Executable)
Show -rw-r--r--
Interpretation: The first column "-" Ordinary files:
"D" catalog file
"B" Device files
"C" character file, such as keyboard
"s" Socket file
"P" Pipeline file
The second column to the tenth column (1) is the master permission rw-readable, writable
(2) Group permissions r--readable
(3) Rights of other persons r--readable
3. Set file permissions chmod no permissions (0)
Rule R (Readable) 4, W (writable) 2, X (executable) 1
Master Permissions rw-4+2+0=6
Group Permissions r--4+0+0=4
Other people r--4+0+0=4

Usage # chmod 740 file name
-RWX r-----
Master Permissions rwx 4+2+1=7 readable, writable, executable
Group Permissions r--4+0+0=4 readable
Others---0+0+0=0 have no authority.

命令                设定对象         权限               权限chmod           u(主)          +(增加)       r(可读)                       g(组)          - (减少)       w(可写)                                             o(其他人)  =(不变)      x(可执行)                                             a(全部)        用法 #chmod u+w o+r fish       主增加可执行,其他人增加可读

#chmod-R 755/home Home directory change all to 755
-rw-r--r--root root
The first root belongs to the master. Owner
Second Root Group

Keep a small tail 20180523

Linux CentOS permissions view, modify

Related Article

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.