freebsd auto login user at boot / i'm stuck


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers freebsd auto login user at boot / i'm stuck
# 1  
Old 02-25-2004
Data 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
# 2  
Old 02-25-2004
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.
# 3  
Old 02-25-2004
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 usersSmilie orSmilie

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

thnx
# 4  
Old 02-25-2004
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
# 5  
Old 02-25-2004
looks extremely good!

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

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

thnx!
# 6  
Old 02-26-2004
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!
# 7  
Old 02-26-2004
no need to thank me. it was someone else who had the answer on google groups
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Solaris

Solaris stuck during boot after reconfigure boot

Hello, I have a problem with my machine that won't boot properly. The story is that I installed a software called apcupsd, which is a control application for my APC battery UPS. I have used version 3.14.10 earlier, but as part of restoring my previously crashed os harddrive I wanted to... (18 Replies)
Discussion started by: Zorken
18 Replies

3. AIX

Replaying log stuck during boot

I had some problems with NFS see here: https://www.unix.com/302790997-post9.html and now I cannot boot the partition when I boot I get stuck here Saving Base Customize Data to boot disk Starting the sync daemon ... (7 Replies)
Discussion started by: filosophizer
7 Replies

4. Shell Programming and Scripting

FreeBSD new user login script

I am a beginner programmer and would like to know where to start to modify the login process so that a user can login as username new password new and have it prompt user for username and password and nothing else and then create said user account on the system so they can ssh back in and login... (9 Replies)
Discussion started by: deshi
9 Replies

5. UNIX for Advanced & Expert Users

Processes on FreeBSD are stuck in "pipewr" state

Hi Experts, I am executing "svn" checkout command through my java code on a freeBSD machine. SVN checkout gets started , but when I run "top" command on my freebsd machine, I have observed that "svn" processes are stuck in "pipewr" state. Any pointer for this problem? Thanks, akash (0 Replies)
Discussion started by: akash.mahakode
0 Replies

6. Solaris

Auto fsck -y at boot

Does anyone know how or if its possible to automatically run fsck -y at boot if the initial fsck check finds that there has been data lost. Usually the initial fsck check will fix low level inconsistencies but if it finds that data has been lost it will put you into single user mode for you to log... (6 Replies)
Discussion started by: tazzy
6 Replies

7. Shell Programming and Scripting

auto login to Super User account

i want to write to script which will login to su account without hving user interaction.( i know Super user password) i wrote following script its also able to log into su account. but seesion gets terminates soon. what can be done ??? or is there any other solution. i don't want to use expect... (6 Replies)
Discussion started by: anup13
6 Replies

8. Solaris

Stuck with Desktop Login

I installed Solaris 10 on top of XP. The installation went smoothly but Solaris is stuck in: Starting Desktop Login on display :0... Wait for the Desktop Login screen before logging in. I'm new with Solaris, please help! Thanks. (3 Replies)
Discussion started by: lanj45
3 Replies

9. AIX

AIX; Auto clearing of 'too many invalid login attempts by user'

Does anyone have a good script / cron job that handles this? I have looked in smit and see it is clearing this count with: chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s '{userid}' However when I looked around to find ways to automate this I have not found an easy... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

10. UNIX for Dummies Questions & Answers

Auto Boot

Ok when i reboot my machine its a pain in the A** i do not have a monitor on it and i know its going to eventualy ask me to type BOot and then its going to ask me if i want to interact with the........ and then it will boot up fine... Hp UX 11i is what i am running and i would like it to boot... (1 Reply)
Discussion started by: bbutler3295
1 Replies
Login or Register to Ask a Question