LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-18-2005, 12:29 AM   #1
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Rep: Reputation: 15
Automatic Login?


Is there a way to have linux boot into the running operating system instead of booting to a login shell???

In other words.....

when I boot up the computer, I want linux to just simply boot right into my users account without asking me to login
 
Old 11-18-2005, 01:43 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
a) You can.
Actually quite easily (I know how to with KDE).

b) You shouldn't.
Just because it's [b]VERY[/] poor practice in terms of
security. Even if you're the only user of the machine,
what if someone STEALS the machine? A bit of paranoia
is good for you (and your belongings).


Cheers,
Tink
 
Old 11-18-2005, 04:54 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
To add to the comments from Tinkster, what if you have a problem booting, as in 'it won't let you in' and you need root privilege to fix it. You can't get there because of the automagic login.

I tried that automatic login once, and never again. Just because of the scenario I mentioned above.
 
Old 11-18-2005, 07:12 AM   #4
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
I really appreciate your concern. I realize full well the risks of booting without a login prompt. The computer that I want to do this on is a small server on my home network. I have no monitor or other peripherals for the pc and it's placement is nowhere near the other computers. MAKES IT A LITTLE DIFFICULT TO LOGIN TO A LOGIN PROMPT.......


Thanks Anyway...I'll find the answer elsewhere
 
Old 11-18-2005, 09:41 AM   #5
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 97

Rep: Reputation: 16
I'm curious why you'd need to have it automatically login if you're not going to be using it directly; everything will start up and run, unless you have certain things that only run when you logon, in which case you should create startup scripts to start them when the machine boots.
 
Old 11-18-2005, 01:41 PM   #6
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
I had a timed login (with KDE) and just tried it for few days...I no more have it...

I am not using Redhat that much now a days....
because I cannot access Internet as I have D-Link 502T ADSL modem and redhat 9 does not have a driver!
 
Old 11-18-2005, 01:58 PM   #7
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: 77
Quote:
I'm curious why you'd need to have it automatically login if you're not going to be using it directly
Really...what the heck is the point. Just turn on the power and leave it. No sense logging in if you can't use the thing...
 
Old 11-18-2005, 10:44 PM   #8
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
The server that I want logged automatic is number four on a four node network!!!!!

I DO NOT HAVE A MONITOR OR PERPHS FOR THAT MACHINE!!!!!!!!!

I see no need to buy a monitor or perphs for that machine since it's only going to be used as a simple home server!!!!!

In other words, that computer will act as a server to hold files from the other computers on the network!!!!!

Jesus, whats the point in debating an issue that doesnt concern you? Either you know the answer to a question and would like to help out, or you don't know the answer to a question and maybe need not to post. What the hell does anyone here care about what I do to my computer? I mean come on!!!!!! Screwing up is how you learn..........


Cause and Effect......you know?

Just answer the question or dont answer the question. I or noone else needs a mother here!
 
Old 11-18-2005, 10:57 PM   #9
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: 77
Quote:
it's only going to be used as a simple home server!!!!!
THEN WHAT IN THE HELL IS THE POINT OF AUTOMATICALLY STARTING A USER SESSION!!!!!

Jeez, just use ssh already...
No one is telling you to get a monitor and keyboard, just trying to wrangle why you feel you need to do this...

At the risk of sounding redundant: what you are trying to do is pointless.

Quote:
Either you know the answer to a question and would like to help out, or you don't know the answer to a question and maybe need not to post.
Right, and you either want some appropriate answers to your question or you don't.
Quote:
Screwing up is how you learn..........
Another good way to learn is by listening to those that have more experience with something than you
Quote:
Just answer the question or dont answer the question. I or noone else needs a mother here!
Fine. AFAIK you cannot do an automatic text login. So go ahead and install X|G|KDM
and have an automatic X session login on your bloody headless server...

Last edited by bulliver; 11-18-2005 at 11:05 PM.
 
Old 11-18-2005, 11:03 PM   #10
matthewa
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 123

Original Poster
Rep: Reputation: 15
Hell noone gave any appropriate information. Everyone just assumed this or that. Not once did anyone simply ask what I wanted to use the damn thing for.

Listen, I apologize for even posting this. thank your for your comments.
 
Old 11-18-2005, 11:12 PM   #11
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: 77
Quote:
Hell noone gave any appropriate information
Whatever. Go have a nap...

Quote:
Not once did anyone simply ask what I wanted to use the damn thing for.
Actually we did, but quite simply, you can't do _anything_ with it.
As you so elegantly said, you don't have a monitor or keyboard, so maybe you would like to explain how you are going to access this automatic login session?


Last edited by bulliver; 11-18-2005 at 11:17 PM.
 
Old 11-18-2005, 11:12 PM   #12
tsphan
Member
 
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
if you really want to have a useless automatic login, here's how

edit your init script so it has the command
Code:
login username
and also remove your user password

there!
 
Old 11-21-2005, 07:53 PM   #13
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 97

Rep: Reputation: 16
matthewa, it appears you don't understand how Linux works. If all this machine is doing is holding files, you don't need a user logged in at all, just boot it. If you have SSH configured and running, you can login via SSH to administer it when needed, and not need a monitor, kbd, or mouse.

SSH will usually include SCP and SFTP for transferring files to/from the box. If you are using this with Windows machines, you could also install Samba and be able to map a drive to this server, though it's less secure than using SCP and SFTP.

If you're using other Linux boxes, you could use NFS to mount the filesystems remotely, but again, that's generally not as secure.

Now, I don't mean to be rude, but if this doesn't answer your questions, you don't know what you are asking for.
 
  


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
Automatic login anegbi Linux - Software 2 11-29-2005 02:57 AM
Automatic login? Cooljerk Linux - Newbie 3 09-14-2005 05:52 PM
Automatic login Mad Echidna Linux - Software 1 12-17-2002 07:00 PM
Automatic Login SlavaVB Linux - General 2 03-12-2002 12:10 AM
Automatic Login kilobravo Linux - General 1 02-15-2002 02:01 AM


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