- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Set uid
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
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
08-14-2002 12:33 PM
08-14-2002 12:33 PM
I need to change the permission on a binary from
---S--S--x sproot
to s (small s). I think there is a difference between the S ans s in setuid and setgid. Can someone help here to understand the difference and also suggest the method to change the permission to may be ---s--s--x. Please help.
Thanks
Brian.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 12:37 PM
08-14-2002 12:37 PM
Solutionthere is actually no difference in the setguid and setuid values. The difference in S and s is the 'x' value. If you have both 'x' (x in 'rwx') and 'S' is set, then when you display, it will list as - 's'. If only 'S' is set without 'x', then it will display 'S'.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 12:46 PM
08-14-2002 12:46 PM
Re: Set uid
# touch fileA
# chmod 6001 fileA
==> That gives ---S--S--x
# chmod 6111 fileA
==> That gives ---s--s--x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 12:47 PM
08-14-2002 12:47 PM
Re: Set uid
For more explanation, an eg: to try:
# cd /tmp
# touch test
# ls -al test
-rw-rw-rw- ....test
# chmod 4666 test
# ls -al test
-rwSrw-rw-
# chmod 4766 test
# ls -al test
-rwsrw-rw-
Look at the difference between both 'ls' commands
hth,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 12:49 PM
08-14-2002 12:49 PM
Re: Set uid
The upper case "S" is the setuid bit without execute permissions, and the lower case "s" with the setuid bit with execute permissions.
HTH
mark