-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
well, 10x guys. It's kinda helpful, though i hoped for something neat
like set nosgid and then the kernel will ignore the setgids in the
current process.
i think i'll use the copy method...
Noam
Behdad Esfahbod wrote:
| [EMAIL PROTECTED] exercises]$
Hi,
Assume a situation where I have a program, lets sat: /usr/bin/myprog
which the permissions on it are: rwxr-sr-x
now, i'm not the owner of the program, but a member of its group.
but, i don't want to run this program and getting it change my effective
gid.
is there a way preventing it from
The only way I can think of is:
cp /usr/bin/myprog ~
chmod g-s ~/myprog
~/myprog
behdad
On Fri, 12 Dec 2003, Noam Meltzer wrote:
Hi,
Assume a situation where I have a program, lets sat: /usr/bin/myprog
which the permissions on it are: rwxr-sr-x
now, i'm not the owner of the program, but a
Behdad Esfahbod wrote:
The only way I can think of is:
cp /usr/bin/myprog ~
chmod g-s ~/myprog
~/myprog
That, or mounting that file system with nosuid option, but this is
probably not what you want :)
Shachar.
behdad
On Fri, 12 Dec 2003, Noam Meltzer wrote:
Hi,
Assume a situation
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
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: