Cannot su to "root" : Account has expired.


 
Thread Tools Search this Thread
Operating Systems AIX Cannot su to "root" : Account has expired.
# 1  
Old 10-03-2011
Cannot su to "root" : Account has expired.

I rolled out sudo (1.7.2p7) to my AIX system (6100-06-01-1043) some time ago. Because I was using "sudo su -" I did not update my root password before it expired as a result of maxexpire.

Now I find that the root account has expired and I cannot find any way of "unexpiring" it.

I have access to root and can update any files as root through "sudo su -". However I cannot log in directly as root on the console anymore - which I would like to do if, for instance, my own account is inaccessible

Does any one know of any way of "unexpiring" root?

I've changed the password so that the change date in /etc/security/passwd is current, but that has had no effect.

Any help appreciated.
# 2  
Old 10-03-2011
Quote:
Originally Posted by barrababa
I rolled out sudo (1.7.2p7) to my AIX system (6100-06-01-1043) some time ago. Because I was using "sudo su -" I did not update my root password before it expired as a result of maxexpire.

Now I find that the root account has expired and I cannot find any way of "unexpiring" it.

I have access to root and can update any files as root through "sudo su -".
Can't you just change root's password with passwd once you've sudo-ed in?
# 3  
Old 10-04-2011
The root user should never have the maxexpire set as when the root user is expired fixing it involves booting off the DVD and going into single user mode and clearing / resetting the root password!

Last edited by johnf; 10-04-2011 at 05:22 AM.. Reason: bad spelling
# 4  
Old 10-04-2011
Thanks for your responses Guys....

Problem solved..... BTW I did change the password as I had access to the root via sudo, however it still instisted that the account had expired. Then I realised lsuser -f root was showing an expiry date of the epoch even tho it was not set anywhere. I then explicitly set expire=0 in the root stanza in /etc/security/user which did the trick.

Basically, AIX seems to disable an expired account when maxexpire is reached
by setting (where I dont know!) the expire date to epoch

I agree about maxexpire for root.. but sometimes corporate settings over-rule good sense! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. AIX

Change "root" to "root.admin" in outgoing e-mails

Our AIX servers send e-mails which have the "from" address set to "root@company.com" for our root user ("C{M}company.com" in /etc/sendmail.cf). The problem is that when bad e-mails are sent out or rejected by remote servers, they are being returned and delivered to e-mail box of "Mary Root". ... (2 Replies)
Discussion started by: kah00na
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Solaris

difference between "root" and "usr" packages

Hi, could someone pls enlighten me on the difference between the "root" package and "usr" package? Like in this example: pkginfo -l SUNWGtku | grep -i desc DESC: GTK - The GIMP Toolkit (Usr) and pkginfo -l SUNWGtkr | grep -i desc DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Discussion started by: masloff
6 Replies

6. HP-UX

root - "Account is disabled"

Hi. I have an issue with root account. System doesn't let me to log on, because accound is disabled/locked. This problem since I have converted passwords file to data base using SAM. I didn't change user's parameters. Somebody knows how can i enable my root account back? (14 Replies)
Discussion started by: netwalker
14 Replies

7. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

8. UNIX for Dummies Questions & Answers

How to reactivate expired account in Linux as a root user

I am an administrator of a Red Hat Enterprise Linux system. Now one account expired. I wonder how to reactivate the account. Thanks (2 Replies)
Discussion started by: cy163
2 Replies

9. UNIX for Advanced & Expert Users

Root account is expired

Hi all, I am using redhat linux version 9 .I am unable to login to the system and i am getting a warninig sorry root account is expired . How can i activate the account. (2 Replies)
Discussion started by: mallesh
2 Replies
Login or Register to Ask a Question