Here's question oozing with newbieness, but I'm still convinced
this is the correct list.

Does this code from src/sbin/init/init.c preclude renaming of the
root account ?

        /*
         * Establish an initial user so that programs running
         * single user do not freak out and die (like passwd).
         */
        if (setlogin("root") < 0)
                warning("setlogin() failed: %m");

If so, wouldn't it be an idea to call getpwnam on uid 0 ?

I don't even know C all that well, so flame on if this is obvious,
but if you could indicate why at the same time it would be nice ;)

Thanks,

Ceri

-- 
keep a mild groove on

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to