Umask of Linux system default permissions

Source: Internet
Author: User

By default, the directory permission value is 755, the normal file permission value is 644, then this value is determined by WHO, the reason isumask

[[Email protected]]# vim/etc/profile

1. Assume thatThe Umask value is:022 (all bits are even)666-022 =644//The starting permission value of the file2. Assume thatThe Umask value is:045 (other user group bits are odd)666-043 {621//Calculation of permissions. BecauseThe last digit of Umask is5, so in other user groups, add1.622//Real file permissions3. Default Directory Permissions calculation method777-02 2 = 7 5 5 umask 044//umask all bits are all even when example: mkdir d044 Catalog 733 Example: Touch f044//File 622umask 023//umask some or all bits of the value are odd when example: mkdir d023//directory 754 Example: Touch f023//File 644 Umask 035//umask all bits of the value are odd when example: 742 Example: Touch f035//File 642     

Umask of Linux system default 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.