Permission-read, write, and execute

Source: Internet
Author: User
Link symbol. Note that for the link symbol, the remaining attribute will always be rwxrwxrwx, which is a pseudo attribute value.

Introduction

The access permissions for files and directories are defined based on read access, write access, and execution access.

When we look at the ls command, we can get some clues.

[Root @ allyes20121031 de_info_center] # ls-l main. cpp

-Rw-r -- 1 root 17745 May 28 main. cpp

[Root @ allyes20121031 de_info_center] #

Analysis

-: File type

Rw-: Owner permission

R --: Group permission

R --: other user permissions

========================================================== ====================

File type

-: Common file

D: directory file

L: link symbol. Note that for the link symbol, the remaining attribute is always rwxrwxrwx, which is a pseudo attribute value.

C: Character device file.

B: block device files.

========================================================== ====================

Permission attributes

R

Directory: Allows you to list contents in a directory.

File: Allows you to open and read files.

W

Directory: whether to allow renaming and deleting objects

File: allows writing or truncating files. if the execution permission is set, the files in the directory can be created or deleted and renamed.

X

Directory: allowed to enter the Directory

File: The file can be executed as an executable file. The language written in the script must be set to readable for execution.

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.