|-C||Asserts the ioctl(2) to redirect console output to the tty device. This can be used from conservers virtual console facillity to emulate a system console.|
|Execute command rather than a login shell.|
|Add the evironment variable assignment env=val to the environment.|
|-ggroup||Add group to current process group set before running su(1). This option probably isnt necessary since the group set should be properly handled through the use of getuserattr(3).|
|-llogin||Create the login process for the user login. If none is given the effective uid is used.|
|-ttty||tty is the name of the character-special file that corresponds to the terminal to be logged in. If none is given the current controlling terminal is used.|
Dont create a utmp entry. Normally, an entry is written to
/etc/utmp to maintain a record of users logged into the system.
Adding the following line to /etc/inittab on an AIX machine establishes a root login on the console terminal (/dev/tty0) with any error messages directed to /dev/console:
cons2:2:respawn:/usr/local/sbin/autologin -t/dev/tty0 -lroot > /dev/console 2>&1
Adding the following line to /etc/inittab on an AIX machine causes ssinfo to be logged in on /dev/tty10 with the TERM environment variable set to reg20:
ss10:2:respawn:/usr/local/sbin/autologin -e TERM=reg20 -t/dev/tty10 -lssinfo
Adding the following line to /etc/ttytab on a Sun 4.1.x machine establishes a root login on the console device:
console "/usr/local/sbin/autologin -lroot -t" xterm on local secure
Note that init provides the tty argument on the end of the command.
Jeff W. Stewart - Purdue University Computing Center
K. S. Braunsdorf - Federal Express
Doesnt add entries to /usr/adm/wtmp??
Doesnt add utmp entry unless its been setup by init(8).
Only runs on FREEBSD, SUN3, SUN4, SUN5, EPIX, IBMR2, PARAGON, HPUX (currently).
Some versions of init do not set the session ID, which will cause complaints about getpgrp and setpgrp and will not associate /dev/tty with your terminal. A workaround is to use the -t option.