From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c135fd7850d9ecbc X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: How to unlock my console Date: 1998/03/27 Message-ID: <351C02DC.70B3E475@EUnet.yu>#1/1 X-Deja-AN: 338361270 Content-Transfer-Encoding: 7bit References: <3518c6e2.8826032@news.unisys.com.br> Content-Type: text/plain; charset=us-ascii Organization: Me organized? Not here! Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Oliveira wrote: > > We have an AlphaStation 200, running DUN 4.0B. We are fairly new > to Unix admin, so we need a help. Somebody, probably trying to > login at the console, put it in a "LOCKED" state, so every time we > try to login it says: "Terminal is locked." > > We see that what happens has nothing to do with a specific account, > because we can login using TELNET, but it can't be done using the > console. > > So how do we unlock the console terminal? You have installed ENHANCED SECURITY (C2) pack and it is enabled. When someone tries to login from a login device (pseudo-tty, X Login, serial-tty) C2 pack records UID and time of unsuccessful login and number of successive unsuccessful login attempts. If that number gets higher than the number_of_max_login_attempts, that login device is locked. All the data about terminals is held in security data base (/etc/auth/system/ttys.db) which is in binary form and should be accessed via utility edauth (you must be root): # export EDITOR=vi # edauth -d t local\:0 local\:0:dev_name=local\:0 .... :t_failures#14:chkent: ........................ You should get a vi session with entry for your local X terminal. Your problem is that field "t_failers#14". If the number if higher than what is set (and default is 10) then your terminal is locked. So, delete that filed and save+exit vi. Then you must RESTART CDE login (actually, the whole X system). If you don't you'll still be stuck. Hope this helps, Nix. P.S. And dont worry, the person who tried to login to your WS, didn't succeede in it. He/she was locked out, just like you.