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 06-20-2003, 08: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, 09:36 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 09: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, 10: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, 10:56 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I think Windows 98 works that way.
 
Old 06-20-2003, 11:05 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 11:18 AM   #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, 01: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



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

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

All times are GMT -5. The time now is 07: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