LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-20-2003, 09:51 AM   #1
jattreadwell
LQ Newbie
 
Registered: Jun 2003
Location: Republic of Texas
Distribution: GenToo
Posts: 7

Rep: Reputation: 0
Question Q) How to automatically login?


I am wanting to setup my system where it will not prompt for a login name or password. Any help or links will be greatly appreciated.

TIA
 
Old 06-20-2003, 10:36 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
A search on "automatic login" pulled close to 50 threads just alone on this site.

http://www.linuxquestions.org/questi...der=descending

Check some of those out as I know this has been discussed numerous times in the past.
 
Old 06-20-2003, 10:39 AM   #3
jattreadwell
LQ Newbie
 
Registered: Jun 2003
Location: Republic of Texas
Distribution: GenToo
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks trickykid, I was searching, but apparently not using the correct phrase. THANKS for helping a newbie!
 
Old 06-20-2003, 11:50 AM   #4
jattreadwell
LQ Newbie
 
Registered: Jun 2003
Location: Republic of Texas
Distribution: GenToo
Posts: 7

Original Poster
Rep: Reputation: 0
Well, after reading the various posts, I don't think I am any closer. It is general thought that you do not want to do this, but this is the route I have decided to take. I would like to be able to turn my system on and have it boot with no user interaction to a command prompt. I would like this user to be logged in as root. Any suggestions? Thanks again everyone...
 
Old 06-20-2003, 11:56 AM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I think Windows 98 works that way.
 
Old 06-20-2003, 12:05 PM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by jattreadwell
Well, after reading the various posts, I don't think I am any closer. It is general thought that you do not want to do this, but this is the route I have decided to take. I would like to be able to turn my system on and have it boot with no user interaction to a command prompt. I would like this user to be logged in as root. Any suggestions? Thanks again everyone...
Well I personally would want to ask why you need a machine to just boot directly to a command prompt as root? This is not a good idea and not good security measures to have on your machine.
I personally have never setup something like this as I most likely would never do this myself. Let us know!
 
Old 06-20-2003, 12:18 PM   #7
jattreadwell
LQ Newbie
 
Registered: Jun 2003
Location: Republic of Texas
Distribution: GenToo
Posts: 7

Original Poster
Rep: Reputation: 0
trickykid,

This is an embedded system that is static so it doesn't matter if they hose it, just reboot and it's fixed. There are many unknown users so passwords won't work. Thanks for your help AGAIN!!!
 
Old 06-20-2003, 02:01 PM   #8
jattreadwell
LQ Newbie
 
Registered: Jun 2003
Location: Republic of Texas
Distribution: GenToo
Posts: 7

Original Poster
Rep: Reputation: 0
Figured it out. Create a file named autologin.c add this to the file:
int main () { execlp ("login", "login", "-f", "root", 0); }

Now gcc -o autologin autologin.c
Now cp autologin /sbin
Now edit your etc/inittab file, look for the line that looks like this:
1:2345:respawn:/sbin/getty 38400 tty1 and change to
1:2345:respawn:/sbin/getty -n -l /sbin/autologin 38400 tty1

This should now autologin as root. Your inittab file may be slightly different, but you should be able to figure it out from the example. Hope this helps someone else out there!

Thanks all...
 
  


Reply


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
automatically login a user thebover Linux - Software 3 08-26-2004 09:00 AM
Cannot login automatically arvindn LQ Suggestions & Feedback 1 11-26-2003 11:48 PM
How do I automatically login using Rdesktop ? netkepala Linux - Software 2 05-23-2003 12:44 PM
? automatically login to X ? VioLaToR Slackware 6 05-06-2003 05:32 AM
Does X11R6 come up automatically at login? geraldgu Linux - Software 1 12-13-2001 07:25 PM


All times are GMT -5. The time now is 09:04 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration