Linux File Permissions Basics

Source: Internet
Author: User

1. Users and Groups

: User|group|others


User Information file:/etc/passwd/

User Management files:/etc/shadow/

Group information file:/etc/group/


2. File permissions

1.linux file Properties

Example: Drwxr-xr-x. 2 WXC wxc 6 March 29 20:00 Public


1. The first character represents the meaning:

Catalog D

- Archives

L Connection file

b Appliance file is available for storage interface block

C Appliance file serial port device character


2. The following characters:

rwx rwx rwx

File Owner Permissions

Group permissions

Other people permissions


2. How to change file properties and permissions

CHGRP Change the file group

Chgrp Root Home

Chown Change file owners and groups

Chown User:root Home

Subdirectories are changed:-R

chmod Change the permissions of the file, Suid,sgid,sbit

chmod 4777 Home


3. Contents and archives of the meaning of the Authority

1. To the Archives: rwx

Readable, writable, executable;

2. To the directory: rwx

Readable, modifiable (documents within the directory), accessible;


-------------------------------

More information can be viewed using Man |

-------------------------------


This article is from the "8408201" blog, please be sure to keep this source http://8418201.blog.51cto.com/8408201/1679951

Linux File Permissions Basics

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.