- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 01:51 AM
03-27-2002 01:51 AM
root password
I am not able to change my root password on HP-UX 11.00. And it gives me the following error message
==========================================
Unexpected failure. Password file unchanged.
==========================================
Any suggestions .....
Thanks
Venky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 01:55 AM
03-27-2002 01:55 AM
Re: root password
try pwck to check for faults.
check access for /etc/passwd
Should be readable for all
-r--r--r-- 1 root sys 7740 Mar 7 12:53 /etc/passwd
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 01:58 AM
03-27-2002 01:58 AM
Re: root password
If you are using NIS then it looks like a nis problem.
I have no direct specific ideas, but maybe later.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:13 AM
03-27-2002 02:13 AM
Re: root password
Check if there is a blank line in /etc/passwd file. If it is remove it.
Regards,
Mateja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:16 AM
03-27-2002 02:16 AM
Re: root password
I have rechecked all the points told by you all but still the problem persists.
Any more suggestions .....
Thanks
Venky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:19 AM
03-27-2002 02:19 AM
Re: root password
First, make sure your password file is not corrupted. i.e, it has no missing entries, broken lines etc. If you have older version of the password file, you can do a diff on it.
The point is make sure the password file is ok.
(pwck is a quick check, but not comprehensive)
Are you using trusted system?
- make sure your trusted database under /tcb is ok. the password information for tcb root accounts are under /tcb/files/auth/r/root . Check whether that file exists and is ok.
if you Are you using NIS/NIS+ system, the problem could be elsewhere.
Also, make sure whether you are using the right passwd command! (/usr/bin/passwd) ;-)
Ensure that you can change passwd of non-root accounts.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:25 AM
03-27-2002 02:25 AM
Re: root password
is this trusted
If so
Sounds like an entry in passwd not in protected passwd
Try Running ' /usr/sbin/authck -pv '
Correct any problems
Also
check patches
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:27 AM
03-27-2002 02:27 AM
Re: root password
I am not able to change passwd for any account.
It gives me the same message.
Any help..
Thanks
Venky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:36 AM
03-27-2002 02:36 AM
Re: root password
I suspect the password file is corrupted. I would try this to check first.
cp /etc/passwd /etc/passwd.saved
rm /etc/passwd
echo "root::0:3::/:/sbin/sh" > /etc/passwd
now do
passwd root
If this works you need to find the corruption in the passwd.saved file or rebuild the file manually. If it doesnt work then copy the passwd.saved back to passwd as the file is not the problem.
cheers
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:05 AM
03-27-2002 03:05 AM
Re: root password
1)boot in single user mode
2)Interrupt boot process and at isl prompt type hpux -is"
3)run sam
4)assign new passwords to the users.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:11 AM
03-27-2002 03:11 AM
Re: root password
Thanks everybody for their suggestions.
Problem got resolved, I simply recreated the passwd file freshly with important user accounts and then tested again. There was no problem this time.
Seems to be passwd file corruption which "pwck" was not able to detect.
Thanks
Venky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:12 AM
03-27-2002 03:12 AM
Re: root password
try this
passwd -F /usr/newconfig/etc/passwd root
If it works then the password file is corrupt.
Check
1)For a trusted system
2)Nis
Do any of the checking programs recommended
give a problem.
Which OS do you have.
Have you changed any software or patches lately.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:19 AM
03-27-2002 03:19 AM
Re: root password
check the /usr/bin/passwd program file for suid permission bits.
regards,
U.SivaKumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 06:54 AM
03-27-2002 06:54 AM
Re: root password
ll /tcb/files/auth/r/root
-rw-rw-r-- 1 root root15:49 /tcb/files/auth/r/roo
If you are looking ad the file it must look like this:
cat /tcb/files/auth/r/root
root:u_name=root:u_id#0: :u_pwd=8EnCriptedA: :u_bootauth:u_auditid#0: :u_auditflag#1: :u_succhg#1007648292:u_unsucchg#1001928601:u_pw_expire_warning#0:u_pswduser=root: :u_suclog#1017240605:u_suctty=pts/ta:u_unsuclog#1011951616:u_unsuctty=pts/ta: :u_lock@:chkent:
edit the file and change:
:u_pwd=8EnCriptedA:into:
:u_pwd=:
than change the passwd
htp
Freek