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) 							File Formats Manual							   ttys(5)

Name
       ttys - terminal initialization data

Description
       The  file  contains information used by various routines to initialize and control the use of terminal special files.  This file is created
       when the system is installed and can be updated at any time.

       Each terminal special file ( ) has a line in the file.  Each line contains several fields.  Fields are separated  by  tabs  or  spaces.	 A
       field with more than one word should be enclosed in quotes.  Blank lines and comments can appear anywhere in the file.  Comments begin with
       a number sign (#) and are terminated by a newline character.  Unspecified fields default to the empty string or zero, as appropriate.

       The format of each line is as follows:
       name command type flag1 flag2 ...

       name	 Is the name of the special file for the terminal in the directory. Some examples are:
		 console
		 ttyd0
		 ttyd1

       command	 Is the command to be executed each time the terminal is initialized.  This can happen when the system	is  booted,  or  when  the
		 superuser  adds new terminals to the file and initializes the new terminals.  The command is usually which performs such tasks as
		 baud-rate recognition, reading the login name, and calling It can be any command you wish, such as the startup command for a win-
		 dow system terminal emulator or a command to maintain other daemon processes.

       type	 Is  the  type of terminal normally connected to the terminal special file.  You can find the possible types by examining the file
		 on your system.  The types available are given as the third field in entries in that file.  Some examples are:
		 vt100
		 vt200
		 dialup

       flags	 Are the flags to be set in the or fields of the structure returned by the routine.  If the line ends in a comment, the comment is
		 included in the field of this structure.

		 These fields are used by the command that is executed when terminals are initialized.

		 The flags are:

		 on	   Sets the TTY_ON bit in the field.  This enables logins for this terminal.

			   The default if this flag is not set is that logins are disabled for the terminal.

		 off	   Clears the TTY_ON bit in the field.	This disables logins for this terminal.

		 secure    Sets  the TTY_SECURE bit in the field.  This allows the root user to log in on this terminal.  (The on flag should also
			   be set.)

			   The default if this flag is not set is that the root user cannot log in on this terminal.

		 su	   Sets the TTY_SU bit in the field, to allow a user to su to root.

			   The default if this flag is not set is that users cannot su to root on this terminal.

		 nomodem   Sets the TTY_LOCAL bit in the field.  The line ignores modem signals.  This is the default if  neither  the	modem  nor
			   nomodem flag is set.

		 modem	   Clears the TTY_LOCAL bit in the field.  The line recognizes modem signals.

			   The default if this flag is not set is nomodem.  That is, the line does not recognize modem signals.

		 shared    Sets the TTY_SHARED bit in the field.  The line can be used for both incoming and outgoing connections.

			   The default if this flag is not set is that the line cannot be used for incoming and outgoing connections.

		 termio    Sets  the  TTY_TERMIO  bit  in  the	field.	This flag causes the terminal line to open with System Five default termio
			   attributes. If the termio flag is not set, Berkeley compliant default terminal attributes are used.

		 The flag is:

		 window="string"
			   The quoted string is a window system process that maintains for the terminal line.

Examples
       The following example permits the root user to log in on the console at 1200 baud:
       console "/etc/getty std.1200" vt100 on secure
       This example allows dialup at 1200 baud without root login:
       ttyd0 "/etc/getty d1200" dialup on
       These two examples allow login at 9600 baud with two different terminal types:  hp2621-nl and vt100.  In this example, the terminals should
       be set up to operate in 7-bit mode, because the std.9600 entry is specified:
       tty00 "/etc/getty std.9600" hp2621-nl on
       tty01 "/etc/getty std.9600" vt100 on
       This example shows the same two terminals as the previous example operating in full 8-bit mode.	Note the use of a different entry:
       tty00 "/etc/getty 8bit.9600" hp2621-nl on
       tty01 "/etc/getty 8bit.9600" vt100 on
       These two examples show network pseudoterminals, which should not have enabled:
       ttyp0 none network
       ttyp1 none network off
       This example shows a terminal emulator and window-system startup entry and should be typed all on one line:
       :0 "/usr/bin/login -P /usr/bin/Xprompter -C  /usr/bin/dxsession -e" none
       on secure  window="/usr/bin/Xcfb"
       This example shows an example of an entry for an lta device:
       tty01 "/etc/getty 8bit.9600" vt100 on modem secure # LAT
       Any  terminal configured to run in 8-bit mode should specify a entry that declares 8-bit operation.  The command field of the entry is used
       to specify the entry.  If the terminal device is set up to operate in 8-bit mode and the command field does not	specify  an  8-bit  entry,
       output  to  the	terminal appears as multinational characters.  These characters are the result of the program using the eighth bit of each
       character to represent parity attributes.  By using an 8-bit entry, the high order bit of each character is unaffected by the program.  The
       examples presented demonstrate the use of both 7- and 8-bit terminals.

Files
       The full pathname for the file

See Also
       login(1), getttyent(3), gettytab(5), getty(8), init(8)
       Guide to System Environment Setup

																	   ttys(5)
All times are GMT -4. The time now is 09:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy