- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- unable to change passwd on linux
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
01-30-2006 08:53 AM
01-30-2006 08:53 AM
unable to change passwd on linux
==>passwd
Changing password for user lehanh.
Changing password for lehanh
(current) UNIX password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
However, the new passwd did not get changed. He still has to use the old passwd to login. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2006 10:48 AM
01-30-2006 10:48 AM
Re: unable to change passwd on linux
Several ideas:
1) The server uses NIS or LDAP and the actual password is changed elsewhere. This situation would also imply a loss of NIS/LDAP communication and would be evident in /var/log/messages
2) There is a space problem on the root filesystem.
3) There is a permissions problem or the /etc/shadow file is locked in some way.
In any chase check the time/date stamp on /etc/passwd and /etc/shadow and make sure the root filesystem is not too close to capacity.
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
01-30-2006 11:30 PM
01-30-2006 11:30 PM
Re: unable to change passwd on linux
Ensure that you configured correctly the pam files and nsswitch.conf to use the directory service for user authentication.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 12:53 AM
01-31-2006 12:53 AM
Re: unable to change passwd on linux
Thank you for your reply, but I would like to clarify my problem. Actually, my user would like to change his passwd on NIS client (linux box). As testing, I (root) switched to his id and successfully changed his passwd with passwd command. However, later the user could not change his passwd and got the error:
passwd: Failed preliminary check by password service
Now I don't know what wrong. Is it related to passwd aging that does not allow you to change the passwd too soon?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 01:10 AM
01-31-2006 01:10 AM
Re: unable to change passwd on linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 01:19 AM
01-31-2006 01:19 AM
Re: unable to change passwd on linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 02:20 AM
01-31-2006 02:20 AM
Re: unable to change passwd on linux
When you try as the user, try selecting a complex password, like:
C*mplexP@ssw*rd (ComplexPassword)
Also try with yppasswd instead of passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 02:35 AM
01-31-2006 02:35 AM
Re: unable to change passwd on linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 02:59 AM
01-31-2006 02:59 AM
Re: unable to change passwd on linux
chage username
To check the password aging options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 04:00 AM
01-31-2006 04:00 AM
Re: unable to change passwd on linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 04:10 AM
01-31-2006 04:10 AM
Re: unable to change passwd on linux
Are you using pam_unix2 or pam_unix, and
another module to update NIS?
Look at the nss switch configuration.
Normal users need to be able to read
the nss configuration files or things may
break.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 04:32 AM
01-31-2006 04:32 AM
Re: unable to change passwd on linux
password required pam_stack.so service=system-auth
Look like we are using pam_unix, not pam_unix2 on /etc/pam.d/system-auth:
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow nis
All entries on /etc/nsswitch.conf has nis, except those:
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
Should I add nis to them? I am not sure how to check about other modules you asked for. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2006 08:45 AM
02-09-2006 08:45 AM
Re: unable to change passwd on linux
yppasswd
not
passwd
Also, The yp* package have bugs in some RHEL versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 08:04 AM
02-10-2006 08:04 AM