Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 02-07-2003, 04:49 AM   #1
LQ Newbie
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
auto login as root (or other user) in console mode

I want to auto login as root (or any other user) in console mode after reboot. I am using suse linux 8.0 and 8.1.

I tried the auto login of the kde, but this does not work for console login !

Best Regards

Old 02-07-2003, 05:05 AM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I may be wrong, but I don't think that is possible. Even if it is, it's not a good idea for security reasons.
Old 01-16-2009, 10:42 AM   #3
LQ Newbie
Registered: Jan 2009
Distribution: opensuse
Posts: 1

Rep: Reputation: 0
Automatic login into linux console

There are two steps:
1) Add the line

NO_PASSWORD_CONSOLE tty1:tty2:tty3:tty4:tty5:tty6

to the file /etc/login.defs

List only consoles which you want to be used for automatic login

2) Open /etc/inittab and find the line similar to

3:2345:respawn:/sbin/mingetty tty3

and replace it with

3:2345:respawn:/sbin/mingetty --autologin your_name tty3

Yes, your_name can be root.

Restart init: do
#shutdown now
#init 3

All configured consoles should have login session started.
If your system uses different getty program you might need to modify step 2 or install mingetty.
Old 01-16-2009, 10:44 AM   #4
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 15.0
Posts: 8,168
Blog Entries: 61

Rep: Reputation: Disabled
Five year old thread,
brought back from the dead.
Old 05-01-2009, 02:05 AM   #5
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
The solution posted by ildar is correct.

I have done that on my own Debian Machine. You can see the solution here.

Last edited by kushalkoolwal; 08-06-2009 at 02:31 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto-login to text-mode? kola Fedora 4 06-14-2010 05:46 AM
Auto login in the text mode JHR Linux - Software 3 04-23-2005 08:47 PM
Auto login as root lmanwarren Fedora 2 04-10-2005 06:05 PM
KDM and temp console mode login TJandE *BSD 0 08-24-2004 12:22 AM
Is it possible to auto login from console rrautens Linux - Newbie 10 10-15-2003 09:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration