Linux basic system permissions file permissions in Linux, each file has three permissions on the file impact on the directory r (read) readable files can List directory content w (write) can modify file content can be created and deleted in the directory x (executed) can be... linux basic system permissions file permissions in Linux, each file has three permissions on the file impact on the directory r (read) readable files can List directory content w (write) can modify file content can be created and deleted in the directory x (execution) can modify the file content can access the directory content note: the directory must have the x permission. Otherwise, you cannot view its content. the UGOLinux permission is based on the UGO model. U stands for User, and G stands for Group, O indicates that the permissions of each other file are set in three groups (rwx) based on UGO. For UGO, each file has an owner/User ), the user's Group is (Group ), not all of the above are other commands ls-ls. you can view the file information in the current directory. The following is a specific example. the name of the last modification time-rwrw-r -- number of links nothi 4 Aug 26 test the number of links is 1 (hard link) owner: nothi owner group: nothi size: 4 bytes last Modification time: January 1, August 26 File name: test where-rw-r---meaning: the following owner permission has group permissions for others -rw r: The owner has read and write permissions. members in the owner group have read and write permissions. others have only the read permission to modify the attributes of the chownchown user file, change the owner of the specified file to a specified user, such as chown nothi test. -The R parameter recursively modifies the chgrp usage of all users of all files in the directory. it is similar to the chgrp group file of chown, and modifies all groups of the specified files to the specified group, such as chgrp nothi test. -R parameter: recursively modify the group of all files in the directory. note: the two commands require the root permission. chmod: the format of the general modification mode for chmod files is u, g, and o, which respectively represent users, groups, and other a (all). all (ugo) + ,-, add and delete permissions r, w, x represents three permission modes. example: chmod u + x test: add the execution permission chmod g + r test to the owner, and add the read permission chmod a + w test to the group. use numbers 4, 2, 1 indicates the r, w, and x permissions respectively. The number indicates the total number of permissions in each group. for example, rw = 4 + 2 = 6, rwx = 4 + 2 + 1 = 7 change the file test permission to rwxrwxr-x and run the command chmod 775 test.
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