Re: [PATCH] Single user linux
©[@ÄØÿ¿8þÿ¿Mohammad A. Haque (imel96@trustix.co.id)
Tue, 24 Apr 2001 20:37:51 +0700 (JAVT)
On Tue, 24 Apr 2001, Richard B. Johnson wrote:
> You are on the wrong list. You don't modify the kernel to make
> a "single-user" machine. You modify the password file in /etc/passwd.
> Until you know, and completely understand this, you will be laughed at.
>
> When an interactive process is started, /bin/login gets the new
> process information from the /etc/passwd file just before it gets
> overwritten (exec) by the shell shown in that same password file.
>
> If you want your accounts to have root privs, you set the UID and
> GID fields in the password file to 0 and 0 respectively. I would
> not suggest that you connect your computer to a network if you
> do this.
thank you very much fyi.
if just you tried to understand it a little further:
i didn't change all uid/gid to 0!
why? so with that radical patch, users will still have
uid/gid so programs know the user's profile.
if everyone had 0/0 uid/gid, pine will open /var/spool/mail/root,
etc.
imel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/