In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the file permissions are in linux. I hope you will gain a lot after reading this article. Let's discuss it together.
Linux file permissions are: 1, r is read-only permission; 2, w is write permission; 3, x is executable permission, 4, [-] is no permission; 5, through the number of file permissions, [Chmod 700passwd] is root the user has all the permissions of rwx.
Linux file permissions are as follows:
1, the meaning of r w x-in the file, r is read-only permission, w is write permission, x is executable permission,-is no permission.
The meaning of r w x in the directory, r has ls permissions, w can add, delete, and create permissions on the directory, and x has ls-l permissions.
2. Modify the permissions of the file
Passwd files belong to root users and root user groups. Current users can rw this file. Other users and those in the same group only have read-only permissions. By entering the tmp file directory, you can view the passwd file. Only root users have all permissions, while other users in the same group and other users do not have any permissions.
3. Chmod modifies the passwd file to add x executable permissions to all users and groups, and to add executable permissions to root and other users in this group by changing the permission command chmod. This is achieved by the command chmod aquix passwd.
4. Chmod modifies the passwd file to delete x executable rights for all users and groups. Remove executable permissions to the user root and other users in this group by changing the permission command chmod. It is realized by the command chmod a Murx passwd.
5. Give file permissions through numbers, such as
-0 000-- x 0 011-w-0 102-w x 0 113r-- 1 004r-x 1 015r w-1 06r w x 1 117
Chmod 700passwd refers to the root that the user has all the permissions of rwx, and the same group and other users do not have any permissions.
6. User group permissions all users who belong to this group have the same permissions. A group is a collection of users. The Id of the group is GID and is stored in / etc/group. Check the id number of each group through cat / etc/group, and users in the same group can share files.
After reading this article, I believe you have a certain understanding of the file permissions in linux, want to know more about it, welcome to follow the industry information channel, thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.