LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-07-2003, 04:49 AM   #1
Peter_Peck
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

Peter
 
Old 02-07-2003, 05:05 AM   #2
bulliver
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
ildar
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
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Five year old thread,
brought back from the dead.
 
Old 05-01-2009, 02:05 AM   #5
kushalkoolwal
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 AM.

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