Sponsored Content
Top Forums UNIX for Dummies Questions & Answers freebsd auto login user at boot / i'm stuck Post 48086 by termiEEE on Thursday 26th of February 2004 10:31:10 AM
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!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
TTYS(5) 						      BSD File Formats Manual							   TTYS(5)

NAME
ttys -- terminal initialization information DESCRIPTION
The file ttys contains information that is used by various routines to initialize and control the use of terminal special files. This infor- mation is read with the getttyent(3) library routines. There is one line in the ttys file per special device file. Fields are separated by tabs and/or spaces. Fields comprising more than one word should be enclosed in double quotes (``"''). Blank lines and comments may appear anywhere in the file; comments are delimited by hash marks (``#'') and new lines. Any unspecified fields will default to null. Each line in ttys has the format: tty command type flags The first field is the name of the terminal special file as it is found in /dev. The second field of the file is the command to execute for the line, usually getty(8), which initializes and opens the line, setting the speed, waiting for a user name and executing the login(1) program. However, it can be any desired command, for example the start up for a window system terminal emulator or some other daemon process, and can contain multiple words if quoted. The third field is the type of terminal usually connected to that tty line, normally the one found in the termcap(5) data base file. The environment variable TERM is initialized with the value by either getty(8) or login(1). The remaining fields set flags in the ty_status entry (see getttyent(3)) or specify a window system process that init(8) will maintain for the terminal line or a key into a database of tty attributes (currently unused). on or off init(8) should (or should not) execute the command given in the second field. secure If on is specified, allows users with a uid of 0 (e.g. "root") to login on this line. local Sets the TIOCFLAG_CLOCAL tty(4) flag for the device. This will cause the termios(4) CLOCAL flag to be set on every open and thus modem control signal lines will be ignored by default. softcar Causes the driver to ignore hardware carrier on the line (by setting the TIOCFLAG_SOFTCAR tty(4) flag). rtscts Sets the TIOCFLAG_CRTSCTS tty(4) flag for the device to enable RTS / CTS "hardware" flow control by default. mdmbuf Sets the TIOCFLAG_MDMBUF tty(4) flag for the device to enable DTR / DCD "hardware" flow control by default. The flags "local", "rtscts", "mdmbuf", and "softcar" modify the default behaviour of the terminal line, and their actions are device driver dependent. These flag fields should not be quoted. The string ``window='' may be followed by a quoted command string which init(8) will execute before starting the command specified by the second field. The string ``class='' may be followed by a quoted string used as a key into a database of attributes for that category of tty. See getttynam(3) for more information on this feature. After changing the ttys file a SIGHUP signal can be sent to init(8) with the command ``kill -s HUP 1''. On receipt of this signal, init(8) will re-read the ttys file and spawn any necessary getty(8) processes. Nota Bene: Sending SIGHUP to init(8) does not change the state of the various tty(4) device flags listed above; the ttyflags(8) program must be run for changes in those flags to take effect on the devices. FILES
/etc/ttys EXAMPLES
# root login on console at 1200 baud console "/usr/libexec/getty std.1200" vt100 on secure # dialup at 1200 baud, no root logins ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234 # Mike's terminal: hp2621 ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans # John's terminal: vt100 ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans # terminal emulate/window system ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0" # Network pseudo ttys -- don't enable getty ttyp0 none network ttyp1 none network off SEE ALSO
login(1), getttyent(3), ttyslot(3), tty(4), gettytab(5), termcap(5), getty(8), init(8), ttyflags(8) HISTORY
A ttys file appeared in Version 6 AT&T UNIX. BSD
October 7, 2006 BSD
All times are GMT -4. The time now is 10:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy