- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with changing the "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
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
05-29-2006 08:40 PM
05-29-2006 08:40 PM
problem with changing the "root" password
i need to change my root password.
but everytime i am getting this error.
# passwd
Old password:
Changing password for root
New password:
Re-enter new password:
Unexpected failure. Password file unchanged. Recommend running pwck command.
some time before i have added this line in /etc/passwd file:
+::-2:-2:::
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 08:48 PM
05-29-2006 08:48 PM
Re: problem with changing the "root" password
This system is an NIS client. Make sure its properly connected as an NIS client before changing the root password.
It is apparent that root is being managed by the NIS server. You may change it there and it should be changed on all NIS clients.
Did you run pwck? What did it say?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 09:05 PM
05-29-2006 09:05 PM
Re: problem with changing the "root" password
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 10:08 PM
05-29-2006 10:08 PM
Re: problem with changing the "root" password
it is giving the same NIS Server name as other servers are giving using "ypwhich" command.
i didnt try with pwck command
please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2006 12:27 AM
05-30-2006 12:27 AM
Re: problem with changing the "root" password
# vipw
Verify the entries in /etc/passwd:
# pwck
Problem entries will report something similar to:
cherylg:*:111:20::/home/cherylgr:/sbin/sh
Login directory not found
Blank lines within or at the end of the file will be noted as:
Too many/few fields
Verify there are no unseen characters in the file:
# cat /etc/passwd |vis
Unseen characters would show up as control characters or numbers using vis.
Look for blank lines within or at the end of the file as well.
Verify permissions, owner, group on /etc/passwd:
# ll /etc/passwd
-r--r--r-- 1 root sys 1794 Jul 11 13:15 /etc/passwd
Correct these if necessary:
# chmod 444 /etc/passwd
# chgrp root:sys /etc/passwd
If the problem cannot be identifed, check when /etc/passwd was last modified.
# ll /etc/passwd
If /etc/passwd was recently modified, copy it to /etc/passwd.bak or something and recover /etc/passwd from backup prior to the last change and test changing the password. Does it still fail? If it does, a clean copy from /usr/newconfig/etc/passwd may have to be moved into place and the entries recreated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2006 12:35 AM
05-30-2006 12:35 AM
Re: problem with changing the "root" password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2006 01:40 AM
05-30-2006 01:40 AM
Re: problem with changing the "root" password
Are you searching NIS in the nsswitch.conf file? You will want the NIS search to be first in the list.