 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

2nd April 2006, 10:08 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 58

|
|
|
Autologin on text console
Hi,
How can I make a system start in text mode, with only one console, and run bash as root without login prompt?
I want to make this as minimal as possible, e.g. even without mingetty.
Thanks a lot!
|

2nd April 2006, 10:47 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
|
I simply have to ask.....
Why would you ever want a linux box to auto logon as root?
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

2nd April 2006, 10:57 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 58

|
|
|
When you use a dishwasher, you don't expect to enter a username and password, do you?
|

3rd April 2006, 03:20 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
|
I believe runlevel 1, single user, doesn't prompt for a password. It doesn't start many services, however. Maybe duplicate what it does in the unused level 4, plus whatever you need.
|

3rd April 2006, 07:57 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
|
When you logon as root, you have complete and total control over the box. You can do anything including erasing absolutely everything and rendering the system completely useless. It just doesn't seem like a good idea to auto logon as root. Maybe a standard user account, but certainly not root.
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

3rd April 2006, 09:18 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 58

|
|
Quote:
|
Originally Posted by pparks1
When you logon as root, you have complete and total control over the box. You can do anything including erasing absolutely everything and rendering the system completely useless. It just doesn't seem like a good idea to auto logon as root. Maybe a standard user account, but certainly not root.
|
Please, I know that.
I want to build a special machine that will just display a text menu when powered on, and run a program based on user's choice. I do not want a user to type any password to get there. It's like a microwave - you don't want to type a password to use it.
Last edited by bachtiar; 3rd April 2006 at 09:39 PM.
|

27th May 2006, 08:40 AM
|
|
Registered User
|
|
Join Date: May 2006
Location: Portland, OR, USA
Posts: 4

|
|
|
I'm also looking for a good solution for auto logging in on a text console. Security issues aside for the moment.
The best I've been able to come up with is to edit /etc/inittab and change the line that reads:
1:2345:respawn:/sbin/mingetty tty1
to something like:
1:2345:respawn:/some/path/mycommand
I've used a simple shell-script as /some/path/mycommand to setup and run some programs. The problem is that the tty doesn't seem to be correctly initialized for full interactive use.
|

27th May 2006, 11:14 AM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,923

|
|
Quote:
|
Originally Posted by bachtiar
Please, I know that.It's like a microwave - you don't want to type a password to use it.
|
But you still have to ensure that the door is properly closed before you can turn it on
|

12th November 2009, 08:41 AM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
Quote:
Originally Posted by bachtiar
It's like a microwave - you don't want to type a password to use it.
|
Not to use it, but if you want to put your hand in it while it is functioning, you'll have some tinkering to do...
|

28th May 2006, 04:19 AM
|
|
Registered User
|
|
Join Date: May 2006
Location: Portland, OR, USA
Posts: 4

|
|
Here's a getty replacement which also seems to accomplish the auto-login:
http://www.pell.portland.or.us/~orc/Code/plugh/
I haven't really checked it out, but thought I'd throw it up here in case anyone else is still looking.
|

6th June 2006, 09:03 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 2

|
|
|
I have set up autologin on a simple server, FC3, for user auto, 1:2345:respawn:/sbin/mingetty --autologin auto tty1 I removed auto's password with passwd -d auto. However, when I ssh to auto home page, it asks for auto's password. When I hit enter, it says the password is wrong. When the server comes up with no keyboard or mouse, autologin works as advertized. I can ssh to root and other users home pages. What is wrong?
|

6th June 2006, 10:26 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317

|
|
Let me restate my opinion on this: I WOULD NEVER SUGGEST DOING WHAT I AM WRITING HERE
Modify /etc/inittab
set
At the bottom, find the # Run gettys in standard run levels. Modify the first as shown below and comment out the rest.
Code:
1:2345:respawn:/bin/bash
#2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6
reboot and you are auto logged on as root and sitting at the shell. set a script in root's profile to auto launch after logon and you should be all set.
And this is nothing like using a dishwasher or a microwave. It's more like having a gun and checking to see if the safety is on by pointing it at your face and pulling the trigger to see if you die
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself
My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
|

7th June 2006, 12:47 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 2

|
|
|
autologin problem
I don't want to login as root, I want to login to a restricted user home page on a simple server with no keyboard or monitor. autologin works on the server after a short boot delay
|

7th November 2007, 06:22 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 2

|
|
|
hey everyone, i am also wanting to auto login on a machine running FC5...i tried pparks1 suggestion...it didnt do wat i wanted it to....but now my system doesnt boot at all...any idea how i can reverse these changes?...thanks guys..
|

8th November 2007, 05:16 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 2

|
|
|
ok i got the non-booting system back up and running using the linux rescue utility on CD...but the auto-login issue still remains...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 20:10 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|