Linux Reading Notes 5-File Permission

Source: Internet
Author: User

 

1. the user information is stored in/etc/passwd, the password is stored in/etc/shadow, and the group name is stored in/etc/group.

 

2. 7 columns indicating file/directory permissions:

Column 1: d: Directory

-: File

L: linkfile (connection file)

B: stores data to provide random access interface devices.

C: Serial Port Interface Device

S: sockets

P: Pipeline (pipe)

Column 2: I-node: How many different file names are connected to this node I-node

 

3. chgrp: change group

-R: recursion of all directories and files in directory, also applies to the following two Commands

 

4. chown: change owner

Chown user./: group file

 

5. chmod: change mode

Two permission setting methods: numbers and symbols

 

6. File Permission

R: Read File Content

W: Modify the file content (excluding the delete permission)

X: Running File

 

7. directory permission

R: Read the directory structure list

W: Change the directory structure list (you can delete files in the directory)

X: enter this directory

 

8. Open a directory to other users. At least the rx permission should be granted.

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.