Linux Common commands------Rights Management commands

Source: Internet
Author: User

chmod

Syntax: chmod [{ugoa}{+-=}{rwx}] [file or directory] For example chmod g+w testfile

[mode=421] [File or directory]

-R recursive modifications such as Chmod-r 777 TestDir

Modify directory testfile directory files for all users with full permissions

Summary of File directory permissions

Represents the meaning of the character permission on the file to the directory

R Read permission to view the contents of a file to list content in a directory

W Write permission can modify the contents of the file can be created in the directory, delete files

X Execute permissions can execute file can enter directory

============================================================

Chown changing the owner of a file or directory

Syntax chown [user] [file or directory]

    

============================================================

CHGRP changing the owning group of a file or directory

Syntax chgrp [user Group] [file or directory]

============================================================

Umask display, set default permissions for files

Syntax Umask [-S]

-S Displays the new file default permissions in rwx form

  

    

Linux Common commands------Rights Management commands

Related Article

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.