single_non_root_user

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: RedHat Annoyances
From: Steve Borho <steve@borho.myip.org>
Date: Tue, 12 Oct 1999 10:16:45 -0500


> > >> 2) Disable passwords entirely so I can log in without them?  Editing them
> > >> out of /etc/passwd does not suffice and I do not have an /etc/shadow
> > file.

I posted this to the list a while ago.  To create a "Single non-root user"
mode, set up run-level 4 to have all the services a single user needs (not
too much networking, etc), then add this line to /etc/inittab:

xu:4:respawn:/bin/su --login steve -c startx

(substitute 'steve' your username) then make runlevel 4 your default run-level.

This will make the box boot straight into X and into that user's
environment.  If you kill X, it will restart itself (sort of like
'Re-Starting Windows..." only without the reboot)

This worked with 5.2.  YMMV

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu