Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, after reading the various posts, I don't think I am any closer. It is general thought that you do not want to do this, but this is the route I have decided to take. I would like to be able to turn my system on and have it boot with no user interaction to a command prompt. I would like this user to be logged in as root. Any suggestions? Thanks again everyone...
Originally posted by jattreadwell Well, after reading the various posts, I don't think I am any closer. It is general thought that you do not want to do this, but this is the route I have decided to take. I would like to be able to turn my system on and have it boot with no user interaction to a command prompt. I would like this user to be logged in as root. Any suggestions? Thanks again everyone...
Well I personally would want to ask why you need a machine to just boot directly to a command prompt as root? This is not a good idea and not good security measures to have on your machine.
I personally have never setup something like this as I most likely would never do this myself. Let us know!
This is an embedded system that is static so it doesn't matter if they hose it, just reboot and it's fixed. There are many unknown users so passwords won't work. Thanks for your help AGAIN!!!
Figured it out. Create a file named autologin.c add this to the file:
int main () { execlp ("login", "login", "-f", "root", 0); }
Now gcc -o autologin autologin.c
Now cp autologin /sbin
Now edit your etc/inittab file, look for the line that looks like this:
1:2345:respawn:/sbin/getty 38400 tty1 and change to
1:2345:respawn:/sbin/getty -n -l /sbin/autologin 38400 tty1
This should now autologin as root. Your inittab file may be slightly different, but you should be able to figure it out from the example. Hope this helps someone else out there!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.