From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3fa048d9258995cb X-Google-Attributes: gidfee84,public From: "Graham Jones" Subject: Re: root account disabled Date: 1997/01/13 Message-ID: <01bc016c$3bd8f020$dd1fdec2@liteyear>#1/1 X-Deja-AN: 209701129 x-nntp-posting-host: liteyear.demon.co.uk references: <5b2kd0$qpn@info.service.rug.nl> newsgroups: comp.unix.osf.osf1 Fred Zwarts wrote in article <5b2kd0$qpn@info.service.rug.nl>... > Yesterday it still worked, but today, when I try to login as root, > I get the message "Account is disabled -- see Account Administrator". >From your news posting I take it you're using C2 security. If so, to re-enable the root account you need to edit the TCB database. In DU 4.0 and above this database in a binary form. In 3.2 and below it is in a text form. You should be able to log in on the console, no matter what (text console not GUI), you will get a message something like this: Account disabled, but console login is allowed If you still can't get in, boot to single user mode and mount the required file systems. ( if in single user mode - mount / read write: mount -u / fsck the /var and /usr partitions if necessary then mount them: fsck /usr mount /usr ... set your TERM env var to vt100, so you can use vi: TERM=vt100 export TERM) Now edit the tcb database - 4.0 or above type: /usr/tcb/bin/edauth root You'll get an edit prompt (:), type vi to edit it in vi 3.2 or below edit the text version of the tcb database: vi /tcb/files/auth/r/root then you need to remove what ever is locking the account. This is likely to be either an entry like :u_lock: this should be changed to :u_lock@: or, more likely, the number of unsuccessful logins has exceeded the maximum: :u_numunsuclog#8: just change this value to 0. wq out of vi and you should be able to su/login as normal > What could have caused it? Someone trying to login in as root. You should regularly check to see if this is being attempted by reviewing the file /usr/adm/sialog This doesn't exist by default, create it using: > /usr/adm/sialog chown root:system /usr/adm/sialog chmod 640 /usr/adm/sialog Also a good idea is to alter /etc/syslog.conf to spool warnings to you when you are logged in (auth.error)