I have a machine running Ubuntu Server. It has only a command-line interface. How can I make the system login with a specific user automatically (I don't want to type the username/password). I know that this is insecure and I don't care.
-
Are you talking about logging in from the console or a remote system? If you are connecting from a remote system just setup SSH key-based authentication.– ZoredacheJun 17, 2010 at 0:17
-
Sorry I should have been clearer. I mean from the console of the machine.– hekevintranJun 17, 2010 at 0:21
Add a comment
|
1 Answer
Install mingetty
.
sudo apt-get install mingetty
Edit your /etc/event.d/tty1
and change this line:
exec /sbin/getty 38400 tty1
to:
exec /sbin/mingetty --autologin username tty1
-
1I did not have a file called
/etc/event.d/tty1
. I created one and followed the rest of the instructions, but it doesn't work. Jun 17, 2010 at 7:01 -
2@hekevintran: What version of Ubuntu? Do you have a
/etc/init/tty1.conf
? If so, make the change there. Jun 17, 2010 at 9:36 -