Linux file permissions

Source: Internet
Author: User
Tags chmod

File type permissions hard link number of user name file size file name
-rw-r--r--1 root root 122 07-22 11:07 abc.c
Owning user rights group permissions other permissions belong to group name time


6 4 4


Read and write execution
R W X


1 1 1


R W-
1 1 0


Permissions represent maximum permissions 0777
0644


Device type
Block devices (Block device)
Character device (character device)
Network equipment (Sock device)

File type
- Normal file (normal) Black
Executable (Excute file) Green (the executable permission of the owning user is determined)
D Catalog (directory)Blue
C Character device file (character) yellow
B Blocks devices (block device)Yellow
S Network devices (sock device) pink
L Linked file (link) Turquoise
P Pipe file (pipe) Brown

chmod 0777 xxxx Set a file to a corresponding permission
chmod a+x xxxx Add this file all permissions plus executable a-x opposite
chmod 777 Directory-r set all files in folder directory to full permissions

Linux 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.