Subject: Re: BusyBox passwd requires root privileges

From: Scott Wood <[email-masked]>
Date: Fri, 03 Aug 2007 16:55:26 -0500

khollan wrote:
> 
> 
> Scott Wood-2 wrote:
> 
>>
>>passwd needs to be setuid root.
>>
>>
> 
> How do you do that?

Make sure it's owned by root, and chmod 4755 the binary.  I'm not sure 
how to go about telling busybox to drop suid when invoked as something 
else.  It'd probably be better to build two busyboxes, one with all suid 
commands and the other with the rest.

-Scott