CONFIG_FEATURE_SUID and login

John Kelly jakelly at shtc.net
Tue Nov 1 01:56:44 UTC 2005


On Mon, 31 Oct 2005 17:05:06 -0600, Rob Landley <rob at landley.net>
wrote:

>> When busybox is not suid root, I can still log in as a non-root user,
>> no matter whether busybox is configured for internal passwd and group
>> functions, or system passwd and group functions.

>In which case you're already running it _as_ root, so the suid bit is a moot 
>point.

ps shows that root is running the getty on tty2.  So are you saying
getty calls login, and that's why login is running as root?

Now if that's true, then why does configuring the login applet need to
force CONFIG_FEATURE_SUID?

On my host system, for instance, /bin/login is not suid root.



More information about the busybox mailing list