Command note chmod, umask

Source: Internet
Author: User

Command note chmod, umask
Change the chmod format: chmod [who] [+ 1-1 =] [mode] fileName parameter: who = u, g o, a mode: +-= permission alphanumeric combination: R-4 W-2 X-1 r-x-5 r --- 4 -- X-1 # chmod u = rwx, g = r --, o = r -- 123.txt# chmod 744 123.txt# ls-l 123.txt-rwxr -- r -- 1 root 12777 December 4 20:31 123.txt add or delete a permission to the file # chmod u-x, g + w, o -- 123.txt# ls-l 123.txt-rw-r -- 1 root 12777 December 4 20:31 123.txt chmod-R xyz filname-R indicates cascade change of root user directory permission 755 by default, default File Permission 644 umask specifies the default file or directory permission to view umask values. Enter umask and press Enter. The default value is 0022, And the directory permission is 755, the File Permission is 644all directories in Linux must have the x permission. 0022 Generally, only the last three 022 = ----w-Note: users do not have the x permission to create common files, that is, 666, directory permission is fully open that is 777755 rwx-----w-= rwx r-x r-x644 rw-------w-= rw- r --

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.