- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- -rwsr-xr-x -> special permissions
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
02-03-2006 02:04 AM
02-03-2006 02:04 AM
rwxr-xr-x
and i want have them as follows:
-rwsr-xr-x
i know that is something like sticky ...
Thanks !!!
Man.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:07 AM
02-03-2006 02:07 AM
Re: -rwsr-xr-x -> special permissions
This is not a "sticky" -- this is suid, which means the program is executed as the file owner. Be careful on it, it is potentialy dangerous!
--
Grych
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:08 AM
02-03-2006 02:08 AM
Re: -rwsr-xr-x -> special permissions
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:10 AM
02-03-2006 02:10 AM
Re: -rwsr-xr-x -> special permissions
Have a look at the manpages for 'chmod(1)'. There is a good explanation of the bit mapping there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:14 AM
02-03-2006 02:14 AM
Re: -rwsr-xr-x -> special permissions
check the chmod man page.
# chmod 4755 file
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:17 AM
02-03-2006 02:17 AM
Re: -rwsr-xr-x -> special permissions
Hi ...
I executed:
chmod u+x prueba.txt
The result was:
-rwxrw-r--
how can i put "s" letter????
Thanks ... Man.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:20 AM
02-03-2006 02:20 AM
Re: -rwsr-xr-x -> special permissions
SGID - For directories, the files creates in the directory, inherit the group ownershipd. For files the file is executed as the group owner of the file instead of the user that runs the program.
STICKY - For programs, depend of the Unix, for Directories, used on public directories, allows only the deletion of a file to root and the owner of the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:21 AM
02-03-2006 02:21 AM
Re: -rwsr-xr-x -> special permissions
You are trying to set the 'setuid' bit. Do:
# chmod 4755 filename
(or):
# chmod u+s filename
...to what you currently have.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:25 AM
02-03-2006 02:25 AM
Re: -rwsr-xr-x -> special permissions
SGID - chmod 2XXX filename
STICKY - chmod 1XXX filename
Where XXX is the normal permissions that you want to establish, for example 750.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:25 AM
02-03-2006 02:25 AM
Re: -rwsr-xr-x -> special permissions
Have a good day !!!
:0)
Manuales ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:37 AM
02-03-2006 02:37 AM
Re: -rwsr-xr-x -> special permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 02:55 AM
02-03-2006 02:55 AM
Re: -rwsr-xr-x -> special permissions
What does mean this permissiions: -rwsr-xr-x ?
Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2006 03:08 AM
02-03-2006 03:08 AM
Re: -rwsr-xr-x -> special permissions
The "man" pages should be your nickname :-))
There is a wealth of informtion there, especially if you follow the "See Also" section at the bottom. In this case, if you look at 'chmod(2)' you can find explanations for what 'setuid', 'setgid' and 'sticky' bits do:
http://docs.hp.com/en/B2355-60127/chmod.2.html
In the case of the 'setuid' bit, when set for an executable file, the privilege of the file's owner is given to the process running the executable file.
That is, if 'root' owns the executable and you (a normal user) are allowed to execute the file, *and* the 'setuid' bit is on, then you gain 'root' privilege while running the executable.
Regards!
...JRF...