Basic use of the command line (permissions)

Source: Internet
Author: User

1. Privilege level: 10 bits Total
-rw-r--r--1RootRoot0    08-11 01:45AA
First bit: Represents the file type    -Normal file    DCatalog Files    L     Link File
Nine guests   Master Permission u  Group Permissions GOther people rights o
RRead4WWrite2xperform 1
2. Modify Permissionschmod command name: chmod (Modify permission) command English original: Change the permissions mode of a file command where the path:/bin/chmod Execute permissions: All user function Description: Modify permissions using method: chmodu+xAA    Owner plus execute permission for AA fileschmodU-xAAchmodg+x,o+wAAchmodu=rwxAA
chmod755AAchmod644AA
3, the meaning of the permission (1) The meaning of the permission to the file R: Read the contents of the fileCat MoreHeadTailW: Edit, add, modify file contentsVIEchoBut does not contain delete files x: Executable    /tmp/11/22/abc   ----
(2) The meaning of permissions to the directory R: can query the directory under the file name    lsW: has permission to modify the directory structure. such as creating new files and directories, deleting files and directories under this directory, renaming files and directories under this directory, cutting    TouchRMMVCPx: Access to the directory    CD
4. Owner and Genus Group Command chown command name: Chown Command English Original: Change file ownership command path:/bin/chown Execute permissions: User
ChownUser namefile name        Change File ownerChownUser1AA                user1 must existChownUser1:user1AA        Change the genus of the owner at the same time
UseraddUser name                    Add UserpasswdUser name                    Set User Password












From for notes (Wiz)

Basic use of the command line (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.