Re: Start linux without login prompt

From: CoinCoveredEyes (simpleeqbest@hotmail.com)
Date: 02/19/03


From: simpleeqbest@hotmail.com (CoinCoveredEyes)
Date: 19 Feb 2003 12:22:16 -0800


> > Is there any method to start linux without login prompt?
> > That means login with root without prompting for user and password
> In open source world everything is possible, but I doubt if there's
> any kind of patch or dedicated software (some kind of login not asking
> for password) to do that... well, maybe you'll find something on the
> internet, but besides of that it's hard to find, it's also not the best
> thing to do, it's against unix/linux philosophy.

Philosophy?
Being able to skip login on a single user system is user friendly.

I did this on Slackware 8.0.
Don't have the mods in front of me, but this is what I remember:
I got the agetty source from www.slackware.org.
I added a "-u" flag to agetty. (u for user)
I changed inittab so one agetty would run with "-u guest".
I put a password for guest in /etc/shadow.
I cleared the password for guest in /etc/passwd.
I edited /home/guest/.bashrc to add "startx".

Now the computer boots straight to guest's account
and runs X windows. If the user exits X and logs out,
the agetty program immediately logs back in as guest.
In short, there is no such thing as being logged out anymore.
The user may of course log in as someone else from the
guest account which is chiefly useful for organizational
purposes, not security.
Finally, I made sure that any user could run "halt" and that
"halt" was easily accessed from the menus in X.

For security, I disabled telnet, rsh, etc. I can log in
remotely with ssh, and only ssh. Since ssh uses the /etc/shadow file
I can't log in as guest without the password, which can be
as hard as I want. Agetty, login, and those use the /etc/passwd file.

My thinking is that if anyone has access to the physical hardware,
no cute login/password prompt is going to keep them out.
You would have to encrypt the hard drive to do that.
Otherwise, it is trivial to boot the machine with a floppy or CD
(DemoLinux for instance) and mount the partitions.
It's only a little more work to yank the hard drive out and
stick it in another machine, in case the first machine has
a BIOS password scheme enabled. So why hassle someone who
is right at the console with that nonsense?

This is not much different from users leaving a
computer on and logged in so they don't have to log in all
the time. This scheme allows the users to turn the machine
off and remain logged in, so to speak.

Brent



Relevant Pages

  • [opensuse] agetty crashing
    ... I've some servers with ipmi cards and I run a agetty to provide a login ... and I can connect with ipmi to the host and get indeed a login prompt and can login. ... At the latest after 2 or 3 ls, the agetty process dies. ...
    (SuSE)
  • Re: 5.0.7 machine locks up!
    ... I tried a terminal login, a virtual console, and even a telnet ... understand "All I had was one shell that responded, ... that already had a "login:" prompt waiting. ... disk activity. ...
    (comp.unix.sco.misc)
  • Re: CentOS 4.2 problem switching from GUI to Character Screen using CTL-ALT-F1 in VMWare
    ... video card and as the guest OS I have loaded Cent OS 4.2. ... CentOS guest to a runlevel 5 so I get the GUI on vt7 I can login on that ... switch back to vt1 and blindly type ... In VMWare, the CTRL-ALT key combination is considered a "hot key". ...
    (comp.os.linux.x)
  • Re: User Guest
    ... Come hai fatto a mappare un utente su guest? ... Ho provato poi in QA ad eseguire la sp_grantdbaccess di un login ... > mapparlo su un altro utente, ...
    (microsoft.public.sqlserver)
  • Access denied. You do not have permission to perform this action or access this resource.
    ... I am accessing it over the internet. ... In IE I have deleted cookies and files; I didn't delete all of the ... I don't get a login prompt. ... If I browse to that site with firefox I am prompted and can login. ...
    (microsoft.public.windows.server.sbs)