Linux File Permissions control

Source: Internet
Author: User
Tags parent directory file permissions

Chmod Modify file Permissions 755 644-r is recursive let the directory also has the relevant permissions

Ugo User User Group other ugo=a a+x=+x

Chown Modify Ask Attribution- R recursive chgrp Authorized user group now, no, because Chown contains

Wwq ! Can also be written in. Deleting a file is controlled by the permissions of the parent directory.

Deleting a file has nothing to do with the permissions of the parent directory. root user x can execute the file, ordinary user r+x can execute ^.* at any beginning . *$ at any end, with x permission to CD directory

there is w no x can only modify file name cannot modify the contents of files

Umask The Production environment directory 755 file that is used to control default file permissions 644

if umask is an even number such as 022 then the file default permission is 666-022

if nmask is an odd 023 Then the file default permission is 666-023 and then the result odd digit plus 1

User home directory permissions are not controlled by the system for 077 reasons in /etc/login.defs The user home directory settings have exclusive umask to control the isolation of different users.


This article is from the "Stream star" blog, please be sure to keep this source http://liukexing.blog.51cto.com/1180302/1962673

Linux File Permissions control

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.