Automatic login through terminal

Asked by Patrick

Hey so I'm using Ubuntu 11.10 headless, and I would like to set it up so that it logs in automatically upon booting. After the login, I would also like the terminal to be running as root, without needing a password to be input. This is essentialy what occurs:

poweron... asks for username
username:
password:
then enters terminal, but as a regular user.

I would like to skip these steps and have it come from poweron right to the terminal as a root user. This is for an embedded system on an RC plane, so security is not an issue. Thanks in advance for your response,
Patrick

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

http://tombuntu.com/index.php/2010/01/01/enable-automatic-login-in-ubuntu-9-10-server/

Just don't use the bashrc edit bit, it will log the user in at boot.

Revision history for this message
Patrick (patrickdobbie) said :
#2

Thanks for the super quick reply! Unfortunately this didn't seem to work properly.
I followed the steps, editing the tty1.conf file, but this didn't seem to change anything upon reboot.
I noticed that the last printed line before the username is asked is omap ttyO2 , so I edited the ttyO2.conf file to look like this:

exec /bin/login -f USERNAME < /dev/ttyO2 > /dev/ttyO2 2>&1 (with USERNAME substituted for the real username)

But upon rebooting it caused the computer to hang and would not properly load; the username/password weren't asked for, but the terminal was also inaccessible, it was simply stuck in a state of constant loading.
Any other suggestions you might have would be really appreciated!

Revision history for this message
Jeet (gour-jitendrasingh) said :
#3

Auto login breaks securities so be careful

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.