Date: Fri, 21 Dec 2001 19:35:40 +0000 From: Ceri <setantae@submonkey.net> To: hackers@FreeBSD.org Subject: Renaming root to something else ? Message-ID: <20011221193540.GA598@rhadamanth>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221193540.GA598>