BTW, something people may not know.  If you own a file with a
group owner that you are not a member, then you cannot change the
sgid bit on the file.

b


On Fri, 12 Dec 2003, Alex Chudnovsky wrote:

> On Friday 12 December 2003 15:53, Behdad Esfahbod wrote:
> > The only way I can think of is:
> >
> > cp /usr/bin/myprog ~
> > chmod g-s ~/myprog
> This is unnecessary. Copying doesn't set the "setuid" and "setgid" permission
> bits for the destination file.
>
> [EMAIL PROTECTED] exercises]$ chmod u+s constructors
> [EMAIL PROTECTED] exercises]$ ls -l constructors
> -rwsr-xr-x    1 alex     users       14517 Dec  2 14:00 constructors*
> [EMAIL PROTECTED] exercises]$ cp constructors constructors2
> [EMAIL PROTECTED] exercises]$ ls -l constructors*
> -rwsr-xr-x    1 alex     users       14517 Dec  2 14:00 constructors*
> -rwxr-xr-x    1 alex     users       14517 Dec 12 17:51 constructors2*
>
>
> > ~/myprog
> >
> > behdad
> >
>
>

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to