Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd April 2006, 10:08 PM
bachtiar Offline
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!
Reply With Quote
  #2  
Old 2nd April 2006, 10:47 PM
pparks1's Avatar
pparks1 Offline
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..
Reply With Quote
  #3  
Old 2nd April 2006, 10:57 PM
bachtiar Offline
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?
Reply With Quote
  #4  
Old 3rd April 2006, 03:20 AM
Jman Offline
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.
Reply With Quote
  #5  
Old 3rd April 2006, 07:57 PM
pparks1's Avatar
pparks1 Offline
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..
Reply With Quote
  #6  
Old 3rd April 2006, 09:18 PM
bachtiar Offline
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.
Reply With Quote
  #7  
Old 27th May 2006, 08:40 AM
schneis Offline
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.
Reply With Quote
  #8  
Old 27th May 2006, 11:14 AM
pete_1967 Online
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
Reply With Quote
  #9  
Old 12th November 2009, 08:41 AM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Quote:
Originally Posted by bachtiar View Post
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...
Reply With Quote
  #10  
Old 28th May 2006, 04:19 AM
schneis Offline
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.
Reply With Quote
  #11  
Old 6th June 2006, 09:03 PM
kendallgreen Offline
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?
Reply With Quote
  #12  
Old 6th June 2006, 10:26 PM
pparks1's Avatar
pparks1 Offline
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

Code:
id:3:initdefault
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..
Reply With Quote
  #13  
Old 7th June 2006, 12:47 PM
kendallgreen Offline
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
Reply With Quote
  #14  
Old 7th November 2007, 06:22 AM
kam_ram Offline
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..
Reply With Quote
  #15  
Old 8th November 2007, 05:16 AM
kam_ram Offline
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...
Reply With Quote
Reply

Tags
autologin, console, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH log console text Menis Programming & Packaging 2 21st April 2009 06:17 PM
Text console does not work lief Using Fedora 3 5th August 2005 07:23 AM


Current GMT-time: 20:10 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat