AIX Learning Notes (iv)

Source: Internet
Author: User

chmod mode filename

U=owner of the file

G=owner ' s Group

O=other users on the system

A=all

+:add Permissions

-:remove Permissions

=:clears permissions and set to mode specified

Example:chmod go+w NewFile

Default File Permissions

file-rw-r--r--644

Directory Drwxr-xr-x 755

These default settings May is changed by changing the umask value.

Classic examples

Scenario Description: The TEAM01 directory was originally privileged to be drw-r--r---but accidentally set to drwxrwxrwx

At this point there is a file under TEAM01 file1 permission is-rw-r--r--

TEAM02 do the following:

The contents of the File1 file are changed

AIX Learning Notes (iv)

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.