The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
User stuck in AIX mali77 UNIX for Dummies Questions & Answers 2 09-18-2007 06:02 AM
AIX; Auto clearing of 'too many invalid login attempts by user' Keith Johnson AIX 0 01-02-2007 12:54 PM
Auto Login merlin UNIX for Dummies Questions & Answers 1 11-20-2002 09:01 AM
Auto Boot bbutler3295 UNIX for Dummies Questions & Answers 1 03-25-2002 10:39 AM
Auto login? merlin UNIX for Dummies Questions & Answers 4 02-26-2002 09:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-25-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
Unhappy freebsd auto login user at boot / i'm stuck

I run freebsd 4.8 and try to find the way or 'a' way to log in a certain user i created automaticaly at pc boot.
I have searched the net, the manuals, but found nothing...

could anyone please get me going by showing me an example or what file(s) i need to take a look at.

i am not working with a graphical interface, purely command line
Reply With Quote
Forum Sponsor
  #2  
Old 02-25-2004
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
i just installed 5.2 a day or two ago and i noticed in the gnome desktop there is a setting to autologon x user. i dont play with that machine much, cuz i havent had time, but i know there is a way. i guess the real question is why?

that pretty much kills your 1st level of security off the bat.
Reply With Quote
  #3  
Old 02-25-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
optimus,

i am not working with and x interface
the reason why i want the autologin is following:
the freebsd client is a replacement for our old as400 ibm twinax terminals, we want our entire network twinax free.
So we took a freebsd, set tn5250 emulator on it
for a user we changed his profile so when he logs on he he automaticaly starts up the emulator, leading him to his as400
sign on screen.
So he would have to log in twice: once on unix, then on as400
which is for some users or

...
there should /must be a way to auto login on freebsd...

thnx
Reply With Quote
  #4  
Old 02-25-2004
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
the only things i found on the net about auto login were on google. the 2nd link is prolly the money shot.

http://groups.google.com/groups?q=au...due.edu&rnum=1

http://groups.google.com/groups?q=au...estions&rnum=4

http://groups.google.com/groups?hl=e...net%26rnum%3D6
Reply With Quote
  #5  
Old 02-25-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
looks extremely good!

i'll test it tomorrow,
today is a good day, lot's of projects approved

thnx optimus, U own!
i'll post later on if it works or not

thnx!
Reply With Quote
  #6  
Old 02-26-2004
Registered User
 

Join Date: Mar 2002
Location: belgium - city of Kooigem
Posts: 25
yes!

link2 is indeed the money shot!

but still needs some changes.

in your /etc/gettytab

you search for this entry

P|Pc|Pc console:\
:ht:np:sp#115200:

then you copy it, and paste under it

P|Pc2|Pc console:\
:ht:np:sp#115200: Pc2:\
:ht:np:sp#115200:al=<username>:

as you see, the entry responds to the second one in the row, in this case for entry 1: Pc, and for entry 2: Pc2
now you can created as many entries as you want, i created 2 extra ones

P|Pc3|Pc console:\
:ht:np:sp#115200: Pc3:\
:ht:np:sp#115200:al=<username>:

once you saved the gettytab
you go to /etc/ttys

search
ttyv0 "/usr/libexec/getty Pc" cons25 on secure
and change this one (or another ttyvX) to
ttyv0 "/usr/libexec/getty Pc2" cons25 on secure

in my case, i also change ttyv1 to "/usr/libexec/getty Pc3"

save the file

perform
#kill -HUP 1

system should now automaticaly log in after boot on ttyv0 with the user of entry Pc2
and on ttyv1 with user of entry Pc3

and it actually works!!


thnx optimus!
Reply With Quote
  #7  
Old 02-26-2004
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
no need to thank me. it was someone else who had the answer on google groups
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0