linux-file permissions and directory configuration

Source: Internet
Author: User

File permissions, the main focus in the file and directory on the rwx meaning is different. The main difference: the meaning of W in the directory can be deleted in the directory and files (regardless of the directory and the owner of the file), mobile, new, etc., the directory only r does not have X, means that you can only query the directory file name, but not open the directory.

action commands for permissions and properties of files: Chgrp, Chown, chmod [-R], all of which represent recursive continuous operations. ChownUse R:group can modify both the owner and the group, chmod 777 or chmod u=rwx,g=rx,o=x two different ways to change.


The focus of FHS is to tell us what each directory is used for, which directories can be mounted separately, and which directories must be in one partition from the root directory, which is helpful for understanding Linux planning.

There must be 5 directories in a partition with the root directory, respectively :/etc/lib/bin/dev/sbin . This is because of the security and stability of the root directory, as well as the ease of repair when it crashes.

This article from "Live" blog, declined reprint!

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.