I'm setting up a PC for a very specific purpose. It's going to do some stuff deep underwater... round about 3km. We don't fear fish hijacking the box locally ;).
I'm trying to set up a login: no Xserver. Works well... I edited gdm.conf not to start. Great: that's how Linux is supposed to be in the first place.
Now my next and last task is: get the login. I googled upstart, event.d - my 10.4 distribution I recently installed doesn't have this or it doesn't work like I expect. I want the box to boot and to provide a local root shell. Just that...
How is this possible?
edit: possible tags: headless, auto-login. Can't set that....
If you just want the box to start up with a root console, why running login in the first place? You can bypass it and just start a shell on any TTY.
Programs running on the text consoles
tty1
totty6
are configured in the files/etc/init/ttyX.conf
. Now, the getty program accepts a-l
option to specify a program to start (default in/bin/login
) - you can specify/bin/sh
instead, and get a root shell. You need to give the-n
option as well, to prevent getty from prompting for the user name.Wrapping up: edit
/etc/init/tty1.conf
and replace theexec /sbin/getty ...
line with:Same for tty2, tty3, ...
To actually enable root logins, you have to set a password for the root account and then unlock the locked root account. If you don't set a password for the root account the passwd command will return
So, first execute in a terminal:
you will prompted for a new Unix password. Write it twice(second for confirmation). Then execute:
to unlock the account. This should return
Reverting back
If you want to disable root account in Ubuntu you need to lock the root account by using the following command:
Second:
Open the terminal and type:
(Orignal ) this it what it should already look like
(What you need to replace the original with)