suid not working as I'd hope???

David Collier from_busybox_maillist at
Mon Jan 17 18:13:00 UTC 2011

In article <memo.20110117173833.14188I at>,
from_busybox_maillist at (David Collier) wrote:

> *From:* "David Collier" <from_busybox_maillist at>
> *To:* busybox at
> *Date:* Mon, 17 Jan 2011 17:38 +0000 (GMT Standard Time)
> I have the following set-up
> $ ls -l /bin/busybox
> -rwsr-xr-x 1 root root 376108 2008-09-07 23:29 /bin/busybox
> $ ls -l /bin/date
> -rwsr-xr-x 1 root root 55052 2008-04-04 14:22 /bin/date
> if I login as web, I can change the date with "date", but if I do
> "busybox date" it comes back with 
>     date: cannot set date: Operation not permitted
> Can anyone suggest why I've failed to get busybox to adopt root 
> user and
> do the job?
just to report --- I have inherited a unit where if I log in as web, and
then say "whoami" the answer comes back "root"

I'm trying to reproduce that effect ( please don't tell me not to, I need
a quick kludge and I'll fix it properly later )

I guess setting the suid bit on the busybox exe is part of it, but
clearly not the whole of it!

More information about the busybox mailing list