SUMMARY: Console is disabled

From: Hernan Dario Russy <h-russy_at_uniandes.edu.co>
Date: Fri, 31 Jul 1998 16:09:35 +0500 (GMT)

First of all, thanks go to
(Gracias Nestor!)

Nestor Ruiz <nruiz_at_hermes.bvl.com.pe>
George Gallen <ggallen_at_slackinc.com>
"Kristin (Kris) Larsen" <klarsen_at_enterprise.afit.af.mil>

their answers were very fast and helpful.


ORIGINAL QUESTION:

        We are running DU 4.0b in a Dec workstation
3000 with enhanced security. Today we are not able to log
in using the console because it says that "Terminal is
disabled -- see account administrator". The username and
password are well typed and validated. We also have checked
and modified the ttys database with no success. Any ideas?

ANSWER THAT SOLVED THE PROBLEM
(Nestor Ruiz <nruiz_at_hermes.bvl.com.pe>)

Well, I know DU4.0x uses a binary database to handle users, ttys, files...
We got similar problem with our DU3.2g, so I made an script who "build"
a new and clean database (/etc/auth/system/ttys), and every time we got
a "Terminal is disabled" we made a copy of the "clean" database over the
dirty one, so we got zero failures.

Here is the script :
---
outfile="ttys.blank"
echo "console:t_devname=console:chkent:" >$outfile
echo
"local\:0|local\:0.0:t_devname=local\:0:t_xdisplay:t_login_timeout#0:chkent:"
>>$outfile
echo
"\:0|\:0.0:t_devname=\:0:t_xdisplay:t_login_timeout#0:chkent:">>$outfile
echo
"\:1|\:1.0:t_devname=\:1:t_xdisplay:t_login_timeout#0:chkent:">>$outfile
echo
"\:0.1:t_devname=\:0.1:t_xdisplay:t_login_timeout#0:chkent:">>$outfile
for tty in /dev/tty*
do
   ntty=`echo "${tty}" | cut -f 3 -d \/`
   echo "${ntty}:t_devname=${ntty}:chkent" >>$outfile
done
---
I guess you need to make some like this, to build a clean database, and
after that, use "convauth -d t" to convert it in to the binary one... (but
first
you need to copy ttys.blank to ttys)
Well, I suppose this should work, I have no tested, but I hope this helps.
PS: You have to bring the machine to single user mode 
before doing this, otherwise login processes make 
impossible correcting the ttys.db database.
___________________________________
Hernan Dario Russy Pena
hrussy_at_mox.uniandes.edu.co
Universidad de Los Andes
Bogota, COLOMBIA. Sur America
Tel: (+57-1) 2869211 Ext. 2814, 2918
Received on Fri Jul 31 1998 - 21:09:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT