- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Queries regarding s-bit
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 04:29 PM
09-25-2003 04:29 PM
Queries regarding s-bit
If the s-bit is set for the owner or group at the same time that the x-bit is set, for permission to execute, then there will be an s in place of the x.
Does the mean in case the original permission of the s-bit of a executable is 700 and then I change I execute chmod 777
The main issue that I am facing is that when I am installation a software, I am doing a chmod to the entire directory and the s-bit is getting set. Is this happening during installation of the software would it be set during the compilation stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 04:36 PM
09-25-2003 04:36 PM
Re: Queries regarding s-bit
chmod 4755
I have generally seen only chmod being associated with 3 No's but not 4. What does 4 signify...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 04:41 PM
09-25-2003 04:41 PM
Re: Queries regarding s-bit
By executing chmod 777 on a file that already has execute permissions set this will not invoke SETUID or s-bit as you have put.
SETUID is set for owner or group for eg
chmod 4777
or SETGID
chmod 2777
Do you understand the purpose of being able to set these permissions
for eg
when you change your password you modify the /etc/passwd file. Only root has permission to do this. This becomes possible because the /bin/passwd command has the SETUID bit set. so whenever any user executes this command it runs as root and has the privilege to modify /etc/passwd
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 04:43 PM
09-25-2003 04:43 PM
Re: Queries regarding s-bit
You have answered your own question, well done.
The chmod 4755 gives the following permissions to a file
-rwsr-xr-x 1 sburgess admin 13 Sep 26 05:36 testing
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 07:33 PM
09-25-2003 07:33 PM
Re: Queries regarding s-bit
the 4th no that u r using with chmod is used to set the setuid bit or setgid bit or the sticky bit
and these are the values used to do so -
Octal Text Name
4000 chmod u+s Setuid bit
2000 chmod g+s Setgid bit
1000 chmod +t Sticky bit
HTH
aparna