Problem
The /etc/auth/system/ttys file is corrupted. How can this file be
rebuilt to include inittab terminals and pseudo ttys?The following error messages from/usr/adm/syslogare an indication that the file may be corrupted and/or when I try to login I get pauses during login and messages indicating "can't securely create ttys database".
Can't rewrite terminal control entry Cannot obtain database information on this terminal can't find terminal control database entry for line ttyp33 can't find tty entries in the tty database
Solution
Take the following steps (these MAY be performed in multiuser mode):
cd /etc/auth/systemmv ttys /tmp/ttys.badPlease note that if you just copy it, you will need to manually remove ttys.
touch /etc/auth/system/ttyschown auth:auth /etc/auth/system/ttys/tcb/bin/ttyupd/tcb/bin/ale /etc/auth/system/ttys pttyupdpttyupd is a shell script located in /tcb/lib/auth_scripts. It must be run with the above syntax because pttyupd will fail to run if called directly.
NOTE: If the script fails to run with an error that it could not securely
update the file then it is suggested to look for and remove the
ttys-t file. For example, on OpenServer6:/var/opt/K/SCO/Unix/6.0.0Ni/etc/auth/system/ttys-tThis was located with:find /etc /tcb /var -name *-tNOTES: If you see the following error during boot:Mounted /dev/_tcp filesystem
$1/etc/smmck: /etc/auth/system/ttys is missing or zero length.
either enter single user mode and restore it from a backup or
let the system rebuild a skeleton version from /etc/inittab
during multiuser mode startup.If the server than hangs and doesn't progress then it is recommended to reboot and enter Single User Mode to attempt the ttys file to be recreated.
If you see the following error during boot into Single-User mode:
Mounted /dev/_tcp filesystem
/etc/tcbck: file /var/opt/K/SCO/Unix/6.0.0Ni/etc/auth/system/ttys
missing. saved $fn-t as $fn
mv: unable to move ttys-t to ttys. No such device or address
(error 6)and in attempting to create the ttys file manually using the steps above I get:
touch: cannot create ttys: No such device or address (error 6)The inode file point would appear to be corrupted and potentially might be fixed with a:
# fsck -ofull /dev/rroot See also
ta105610, "I want to clear my system of users who are not logged in," for scripted version of the above.
ta103157, "System hangs 'Type CONTROL-d' or 'Current System Time' prompts."