How to set Linux file permissions

Source: Internet
Author: User
Tags file permissions

In Linux, each file has a specific attribute. Mainly includes the file type and the file permission two aspects. Can be divided into 5 different types: Normal files, directory files, linked files, device files, and piping files.

The so-called file permissions, refers to the file access rights, including the file read, write, delete, execution. Linux is a multi-user operating system that allows multiple users to log in and work at the same time. So Linux links a file or directory to a user or group. The access control list, which provides better access control for your computer, restricts access to files, resources, or sockets for all users, including the root user (acl:access). Here is a simple way to set up.

Step 1 Check the system core

First check to see if the core of your Linux system has the ability to support ACLs. Since Linux does not have the ability to support ACLs at the core of every release, the easiest way to do this is to check whether the system's current core supports:

[Root@mail/]# cat/boot/config-kernel-version grep-i ext3







At this point, if you see the above items, you are already compiled into the core. The,ext3_blank> file system already supports ACL functionality, which can be found in the compilation core options. If you cannot find it at compile time, you can install kernel ( on the official ACL site.

Step 2 Mount Partition

You can mount partitions and enable ACLs in the following ways:

#mount-T Ext3-o ACL/DEV/SDA1/FS1

You can also write directly in the/etc/fstab file so that you can support ACL functionality after powering on:


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.