tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Console is disabled
@ 1998-07-31 11:09 Hernan Dario Russy
  0 siblings, 0 replies; only message in thread
From: Hernan Dario Russy @ 1998-07-31 11:09 UTC (permalink / raw)
  To: tru64-unix-managers

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

Nestor Ruiz <nruiz@hermes.bvl.com.pe>
George Gallen <ggallen@slackinc.com>
"Kristin (Kris) Larsen" <klarsen@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@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@mox.uniandes.edu.co
Universidad de Los Andes
Bogota, COLOMBIA. Sur America
Tel: (+57-1) 2869211 Ext. 2814, 2918

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-07-31 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-31 11:09 SUMMARY: Console is disabled Hernan Dario Russy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox