Hello to everybody, this is the first time that i write.
My problem is that i set the SUID and/or SGID for a program that i compiled with one user, and i need to execute that program with another users belongs to same group but the user when executed the program was not the owner of the file, the file system where the program resides have default permisions and i don't know because the execute user is not the owner, i try in LM7 and LM8 with the same result, but with the Red Hat 6.2 is corret.
Why?
Can somebody help me?
It is very important because this factor must be decisive in what distribution must be install in i development computer with many development users.
Let me see if I understand.
user 'd' owns and compiles executable program 'p'.
User 'd' is a member of group 'g'
The program needs to run as user 'd'. (essential assumption!)
(because maybe the log file that program uses is owned by user
'd' and is not group writable (a possible solution - make that
file group writable (but the problem with that idea is that
then ANY user in that group can mess up your log or whatever
file)))
You need any user in group 'g' to be able to run program 'p'.
I will assume you don't want just anyone to run 'p'.
Ok, so, if you do:
ls -l p
You should see:
-rwx------ 2 d g 16384 Jun 2 22:54 p*
(the NUMBERS should be different, but the rest should be the same)
So, if you said 'chmod 6550 p' you might get the program to
become the userid 'd' upon execution, you might not....
Good luck!
rc
Rusty E. Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED] Voice: (480) 345-3621 SnailMail: Schlumberger ATE ___ FAX: (480) 345-8793 7855 S. River Parkway, Suite 116 \e/ Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825 V ICBM: 33 20' 44"N 111 53' 47"W http://tuxedo.org/~esr/ecsl/index.html