Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set What is chmod set group-ID ?

Status
Not open for further replies.

nimapoggy

Programmer
Mar 4, 2002
34
FR
Hello !
I saw this "set group-ID" option in chmod command, and I realy don't understand what it means.
If someone could explain this to me with simple words it would be very great !
Thanks !
 
In most cases, you would only be concerned with the last 3 digits, i.e. 644. The first digit is the attribute bit. It can also have a value of 4, 2 or 1 just as the other bits. 4 sets the userid, 2 sets groupid and 1 sets the sticky bit. When you set the groupid, that means execute or open the file as the owner's group. The same is true for set userid. It will treat everybody as if they were the owner.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top