Click to See Complete Forum and Search --> : auto login?
phr3aky
07-24-2003, 01:47 AM
How could I configure Linux to auto-login in console mode?, I mean, I need Linux to login as root user automatically (in fact, my root user doesn't have any password), how can I do to make Linux to login after turning on the machine as root?, if it can not be made as root, how can I login as a normal user but always on console?, not using X.
Originally posted by phr3aky
(in fact, my root user doesn't have any password)
That's the most crazy thing I've heard. Set a password...
Anyway, I found this (http://www.justlinux.com/forum/showthread.php?s=&threadid=17681&highlight=auto+login).
tanna
07-24-2003, 02:11 AM
I would reccomend setting a password too. :eek: :rolleyes: ;) :)
edit: well on the problem, in the console and you have no X, you can login as root on the command line by typing:
su
then it asks for a password, and then type it {you press enter}. Then your root.
Actually, he wants to login automatically, without having to type anything :D
tanna
07-24-2003, 02:18 AM
oh yeah. sorry. heh....
phr3aky
07-24-2003, 09:35 AM
It sounds like crazy idea, I know, but believe, I don't need a password for the root user in my system, cuz I'm not talking about a desktop or normal PC System, is for a different kind of machine that I'm designing which will run with Linux as OS.
Now, the link that you gave me....didn't help me a lot, but I found I could login in Xserver (graphical mode) automatically by reading that link, how it's that supposed to be done?
Sepero
07-27-2003, 12:44 AM
You could try changing your 'inittab' file from:
3:23:respawn:/sbin/getty 38400 tty3
to this:
3:23:respawn:/bin/bash
Depending on what run-level your system starts up with, I think that will(somewhat) work. I've used something like that before and it isn't the _exact_ same as logging in, but generally has the same effect.
P.S.
These examples are how I would change _my_ inittab. It is very likely that your inittab file is a little different.
roamingnomad
07-27-2003, 06:35 AM
You'll have to tell us what kind of strange and exotic system you're designing! ;)
phr3aky
07-27-2003, 10:42 AM
hehehe, just an MP3 automatic disc changer, that's why I need it to auto login and start an MP3 player (XMMS for example) automatically, it will not have any kind of video output to control user login, password, etc, just a keypad, a LCD and that's all :)
chucksaysword2
07-27-2003, 11:27 AM
Crazy idea here...maybe you could tell your bootloader to boot into "single-user mode" so that you would instantly log on as root without being asked for a password? I really don't know if it will work but it's worth a shot I guess.
roamingnomad
07-27-2003, 10:58 PM
funny ;)
I think chucksaysword2's solution might work, but I think single-user mode is generally used for system admin type stuff, but give it a shot!
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.