[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#58640: wrapper does not handle fakeroot well



Ethan Benson <erbenson@alaska.net> wrote:

> [eb@socrates tmp]$ chmod u+w setuidprog
> [eb@socrates tmp]$ echo "we just fubared setuidprog" > setuidprog
> [eb@socrates tmp]$ cat setuidprog
> we just fubared setuidprog

> as you can see if we get uid man then we just just chmod the man
> binary writable just fine and write to it.

But the suid bit will disappear after changing the file (or is this a
special of some shells?):

$ touch setuidprog
$ chmod 4755 setuidprog
$ ls -l setuidprog
-rwsr-xr-x    1 roland   wizard          0 Feb 23 13:28 setuidprog
$ echo "we just fubared setuidprog" > setuidprog
$ ls -l setuidprog
-rwxr-xr-x    1 roland   wizard         27 Feb 23 13:28 setuidprog

I tried this with ash and tcsh.

Maybe I'm not paranoid enough today?

Tschoeeee

        Roland

-- 
 * roland@spinnaker.de * http://www.spinnaker.de/ *


Reply to: