- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What's the "S" in -rw-rwSr--
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
Discussions
Discussions
Forums
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
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
тАО04-05-2002 08:29 AM
тАО04-05-2002 08:29 AM
What is the "S" ?
I exported a 10.20/asu file system to a 11.00/CIFS system.
The web server on the 11.00 system can't open files (permission denied) that were on the 10.20 system "IF" they were touched by ASU (have "S" in the file properties) whats up with that?
If I copy the file over, the webserver reads the file just fine.
Masaki
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:32 AM
тАО04-05-2002 08:32 AM
Solution# touch /tmp/stupidfile
# ls -l /tmp/stupidfile
-rw-rw-rw- 1 root sys 0 Apr 5 11:13 /tmp/stupidfile
# chmod g+s /tmp/stupidfile
# ls -l /tmp/stupidfile
-rw-rwSrw- 1 root sys 0 Apr 5 11:13 /tmp/stupidfile
#
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:34 AM
тАО04-05-2002 08:34 AM
Re: What's the "S" in -rw-rwSr--
man chmod
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:34 AM
тАО04-05-2002 08:34 AM
Re: What's the "S" in -rw-rwSr--
"S" is an additional file permission paramter like 'rwx'. It is used to set-owner-ID-on-file-execution or set-group-ID-on-file-execution permission for who. Useful only if 'u' or 'g' is expressed or implied in who. In your case. the group-ID is set.
# man chmod - for more details
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:35 AM
тАО04-05-2002 08:35 AM
Re: What's the "S" in -rw-rwSr--
s is for add or delete set-group-ID-on-file execution . check out man page for chmod.
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:37 AM
тАО04-05-2002 08:37 AM
Re: What's the "S" in -rw-rwSr--
chmod 2666 [filename]
will produce that permissions mask. man 2 chmod for more information on what the sticky bit does.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:40 AM
тАО04-05-2002 08:40 AM
Re: What's the "S" in -rw-rwSr--
# chmod 2444 fileA
==> fileA will be r--r-Sr--
If you're regular user chmod on a file the user owned will show ..
$ chmod 2444 fileB
==> fileB will be r--r-sr--
Basically SGID is turned on, it means whoever runs that script will "effectively" run it as the group ownership of that script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:41 AM
тАО04-05-2002 08:41 AM
Re: What's the "S" in -rw-rwSr--
That's a "set-ID" - group set-ID in this case.
Means that whenever the file is executed the process will be owned by the group ID
Can only be cleared with a chmod g-s filename.
But it's been set for a reason - I wouldn't clear unless you know why you should.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:54 AM
тАО04-05-2002 08:54 AM
Re: What's the "S" in -rw-rwSr--
------s--- Execute/search by group; set group ID on execution
------S--- No execute/search by group; set group ID on
Intresting to note that OmniBack uses the group S to lock files during a backup to prevent there use. A member of the group that owns the file cannot the execute/search it. We had a backup fail which had the "lock files" option set and could not start an Oracle DB because this bit was set on one of the control files. Took a bit of digging to find that one!