In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of special permissions SUID SGID and SBIT in Linux, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
1. SUID, the important role is to let other users have the authority of the owner of the program when executing the program granted to SUID.
A direct example is the command passwd: [root@localhost www] # ll / usr/bin/passwd
-rwsr-xr-x 1 root root 31736 August 22 2010 / usr/bin/passwd
Passwd has the right to execute only root, but it grants SUID permission, and other users will temporarily have the right to root when executing.
2. SGID, use the directory to make the programs under the directory temporarily gain the owner's permission during execution: [root@localhost www] # ll / usr/bin/locate
-rwx--s--x 1 root slocate 38464 August 24 2010 / usr/bin/locate
3. SBIT is also used in a directory. Files in this directory can only be deleted by themselves and root: [root@localhost www] # ll / | grep "tmp"
Drwxrwxrwt. 6 root root 4096 November 18 15:38 tmp
Authorization method:
4-SUID
2-SGID
1-SBIT
Chmod 4755 filename
The above is all the contents of the article "sample Analysis of SUID SGID and SBIT with Special permissions in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.