Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Dave on June 15, 2003, 10:50:53 AM

Title: chmod question
Post by: Dave on June 15, 2003, 10:50:53 AM
I have created a directory which has permissions as rwxr-----

other directories shown in the same parent directory, show permissions of
rwxr-s---
using chmod, how do I change the group id permissions of this directory to show
r-s   ?

This isn't a problem as I just created a new directory, but I am interested on how to do this.

I have done a man on chmod but I missed the bit on how to get an s :~)

I know how the normal rxw are obtained, but as for the additional values ?

Cheers

Dave
Title: Re: chmod question
Post by: JeffC on June 15, 2003, 06:08:44 PM
While there are better ways to do this, Midnight Commander is your friend...

Type mc at a prompt, then F9 to get the menu > Files > chmod (or F9 > f > h) and look at the numeric value in the right panel.

That should be educational :>

-jeff
Title: Re: chmod question
Post by: Marko Polo on June 19, 2003, 08:35:11 AM
It's called a setuid

You inherit the permissions of the owner of the script.
Security issue yes but hey........