• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

Does anbody know what the s bit does in unix permissions?

This is just a For My Knowledge question. I see permissions in our unix environment that are set to :

rwxrwsr-w

I have found that the s stands for set user.

What does that mean?

Jim
0
scuzz1
Asked:
scuzz1
  • 2
1 Solution
 
ahoffmannCommented:
man chmod

the s-bit for groups on files changes the the group from the caller's group to the group assigned to the file when it is executed.
0
 
scuzz1Author Commented:
Thanks.

A couple of us was wondering and we could not find any text on it. Nothing very definitive. I know how to set it but never knew what it actually did.

Jim
0
 
ahoffmannCommented:
keep in mind that the s.bit for directories behaves different (for obvious reason:)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now