Linux Basic Learning Notes-Fifth lesson: File permissions

Source: Internet
Author: User

    1. Linux

    2. Linux under All files, each file permissions are the main, belong to the group, the other three identities, each identity has read, write, excute settings

    3. Account configuration file:/etc/passwd

Password configuration file:/etc/shadow

Group configuration file:/etc/group

Modify the system default language:/etc/sysconfig/i18n modify file properties and permissions:
    1. Chgrp: Modifying the genus Group

    2. Chown: Modify Owner

    3. chmod: Modify Permissions

Permissions for
    1. File:

      1. R: Can read the actual contents of the file, such as text file

      2. W: can edit, add, modify the contents of the file, but does not include the deletion of the file

      3. X: The file can be executed by the system

    2. Directory:

      1. R: You can read the directory structure list and display the file name data in the directory

      2. W: can create files and directories in this directory/delete existing directories or files/move files and directories in this directory/rename

      3. X: The user can access the directory or become a working directory permission

File type: the
    1. Ascii

    2. Binary binary: Binary

    3. Data format file:

    4. Catalog: D

    5. Link file: L

    6. Device files: B often in/dev/

    7. Character device: C often in/dev/

    8. Interface: s often in/var/run

    9. Pipe: P

File length limit:
    1. Single file name maximum allowable 255 characters

    2. The full path is up to 4096 characters long

    3. File name cannot be used for system special characters: *?<>&! []|\ ' "' () {}

This article is from the "Calm" blog, please be sure to keep this source http://6160859.blog.51cto.com/6150859/1684644

Linux Basic Learning Notes-Fifth lesson: 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.