root password is still invalid after resetting


 
Thread Tools Search this Thread
Operating Systems AIX root password is still invalid after resetting
# 1  
Old 06-04-2009
root password is still invalid after resetting

Hi AIX Gurus,

I've purchased a second hand pSeries and don't know the root password. I've used the following instruction to reset root password and everything seems just fine. However, after it reboots, the system still says the root password I used is invalid. I really don't know why. I did use "sync; sync; sync; reboot" after resetting root password. Please help. Thank you in advance.

pSeries and AIX Information Center
# 2  
Old 06-04-2009
I'd start with checking that root is allowed to login at all. Second thought: given that you purchased your server from abroad it might be installed with a locale that is different from what you expect. Reset the password again and use only chars and numbers to prevent you being tricked by a wrong keyboard layout.
# 3  
Old 06-04-2009
(1) I use its serial port to connect to its console. Root access should not be a problem in this case, I think.

(2) It is a US system. I have tried different types of passwords from abc to axadf23adfddf - you know what I mean.

Thanks.
# 4  
Old 06-04-2009
Quote:
Originally Posted by aixlover
(1) I use its serial port to connect to its console. Root access should not be a problem in this case, I think.
I see. Well, in this case you might want to think about what the difference between 'rlogin' and 'login' could be. Smilie
Quote:
Originally Posted by aixlover
(2) It is a US system. I have tried different types of passwords from abc to axadf23adfddf - you know what I mean.

Thanks.
As you are sure about what characters you typed you could check next whether there is an asterisk or an exclamation mark in the password field of /etc/passwd. An asterisk would point at a problem during setting the password and also prevent you from login in. Subsequently you would then check whether the crypted password is in /etc/security/passwd.

Somewhat unlikely but possible would be that the option account_locked is set to true or the the loginretries counter is set to a positive integer with the unsuccessful_login_count exceeding that number. Run 'lsuser root' as root to find out.
# 5  
Old 06-04-2009
These suggestions sound good. I will try them this evening. Thank you very much for your help! Smilie
# 6  
Old 06-04-2009
reinstall AIX, I would never ever use a preinstalled AIX from a second hand buy
# 7  
Old 06-05-2009
Here is the info. Everything looks fine, doesn't it?

# head /etc/passwd
root:!:0:0:AIX System Account:/:/bin/ksh
daemon:!:1:1:AIX System Account:/etc:
bin:!:2:2:AIX System Account:/bin:
sys:!:3:3:AIX System Account:/usr/sys:
adm:!:4:4:AIX System Account:/var/adm:
nobody:!:-2:-2:AIX System Account:/:
lpd:!:104:-2:AIX System Account:/:
imnadm:!:20:22:AIX System Account:/home/imnadm:/usr/bin/ksh
dev:!:200:1:AIX System Account:/u/dev:/bin/ksh
lowes:!:201:200:lowes:/u/lowes:/bin/ksh

# head /etc/security/passwd
root:
password = pptbHGaco/tFw
lastupdate = 1244092509
flags = NOCHECK
daemon:
password = *
bin:
password = *

# lsuser root
root id=0 pgrp=system groups=system,bin,sys,security,cron,printq,audit,mqm home=/ shell=/bin/ksh gecos=AIX System Account auditclasses=general login=true su=true rlogin=true daemon=true admin=true sugroups=ALL admgroups= tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 registry=files SYSTEM=compat logintimes= loginretries=5 pwdwarntime=14 account_locked=false minage=0 maxage=8 maxexpired=4 minalpha=4 minother=1 mindiff=3 maxrepeats=3 minlen=7 histexpire=26 histsize=5 pwdchecks= dictionlist= fsize=-1 cpu=-1 data=262144 stack=65536 core=2097151 rss=65536 nofiles=2000 time_last_login=1205946435 time_last_unsuccessful_login=1244090425 tty_last_login=/dev/tty0 tty_last_unsuccessful_login=/dev/tty0 host_last_login=s1492a host_last_unsuccessful_login=s1492a unsuccessful_login_count=13 roles=
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Red Hat

Failed password for invalid user

Dear All , I have created a user named X and gave sudo permissions for it , So that it can access some commands as root. This particular user can login to the server using SSH login through putty any where with in the network. But there is some issue , when the same user is trying from... (4 Replies)
Discussion started by: jegaraman
4 Replies

3. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

4. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

5. HP-UX

problem in resetting lost root password

I am able to get into single user mode as part of the process of resetting a lost root password, but once I am in that mode, my keyboard no longer works. Any ideas on what's wrong? Without the keyboard, I am stuck. (1 Reply)
Discussion started by: richard46
1 Replies

6. UNIX for Dummies Questions & Answers

I need it to prompt me for a root password, so I don't have to log as root

Hi folks, I'm trying to install a program, and I want to place some of the executables into /usr/bin so that they can be executed from any folder on the computer. I've been giveng the root password, but told never to log in directly as root. Instead, I can wait for a password prompt. However, I... (2 Replies)
Discussion started by: lunchtime
2 Replies

7. Solaris

Resetting forgotten admin password

How do you reset a forgotten administrator password in unix on a Sun Sunblade 100? :mad: (1 Reply)
Discussion started by: mehow
1 Replies

8. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
Login or Register to Ask a Question