bug-bash
[Top][All Lists]
Advanced

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

Re: setuid from shellscript isn't permanent


From: Aras Vaichas
Subject: Re: setuid from shellscript isn't permanent
Date: Mon, 21 Jul 2008 15:31:10 +1000
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Bob Proulx wrote:
> Mr Aras wrote:
>   
>> $ ./setuid_test_script.sh
>> mode of `/nfsroot/bin/busybox' changed to 4755 (rwsr-xr-x)
>> -rwsr-xr-x 1 root root 515956 2008-07-18 11:46 /nfsroot/bin/busybox
>>
>> $ ls /nfsroot/bin/busybox
>> -rwxr-xr-x 1 root root 515956 2008-07-18 11:45 /nfsroot/bin/busybox
>>     
>
> With only this information I would have to guess that even though you
> have a command that it doing the chmod one way that there must be
> another command that is changing it back.
>
> Try running with 'bash -x ./setuid_test_script.sh' in order to trace
> your script commands.  I expect to see that there is another one that
> you are not expecting that is running.
>   
Arg! You were right, there was a Busybox install script which I thought
was only creating symlinks, but it also re-installed Busybox and changed
the mode back to 0755. Silly me ...



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




reply via email to

[Prev in Thread] Current Thread [Next in Thread]