Re: ignoring setgid

2003-12-15 Thread Noam Meltzer
-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]$

ignoring setgid

2003-12-12 Thread Noam Meltzer
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

Re: ignoring setgid

2003-12-12 Thread Behdad Esfahbod
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

Re: ignoring setgid

2003-12-12 Thread Shachar Tal
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

Re: ignoring setgid

2003-12-12 Thread Alex Chudnovsky
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

Re: ignoring setgid

2003-12-12 Thread Behdad Esfahbod
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: