- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Linux NIS "Authentication token manipulation error...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО02-12-2010 11:32 AM
тАО02-12-2010 11:32 AM
I'm having an interesting time getting NIS password changes to work on RHEL 5.3. When I try to change one using "passwd" I get the error:
Changing password for user applic.
Changing password for applic
(current) UNIX password:
New UNIX password:
New UNIX password:
passwd: Authentication token manipulation error
(Yes, I'm sure that I'm entering the correct current password first since I know that this simple mistake can cause the same error message to appear, albeit earlier in the output.)
Here are the details of the PAM/NIS configuration:
1) NIS server IP/name added to /etc/hosts
2) /etc/yp.conf changed to
domain
3) /etc/sysconfig/network changed
NISDOMAIN=
4) ypbind added to auto-start
# chkconfig --level 345 ypbind on
5) "compat" entries added to /etc/passwd and /etc/group
6) /etc/nsswitch changed to:
passwd: compat
shadow: files
group: compat
(I suspect that the "shadow" entry may be part of the problem-- more on that later.)
7) Add netgroups to /etc/security/access.conf
8) Change /etc/pam.d/system-auth
password sufficient pam_unix.so md5 shadow nis nullok try_first_pass use_authtok
-----
Some interesting tests I've run:
1) add "audit" to /etc/pam.d/system-auth line
This gives some more detail in /var/log/secure, but not enough to troubleshoot the problem. For example when changing the user "applic":
passwd: pam_unix(passwd:chauthtok): username [applic] obtained
passwd: pam_unix(passwd:chauthtok): username [applic] obtained
passwd: pam_unix(passwd:chauthtok): password not changed for applic on
2) Removing "md5 shadow" from the system-auth config allows the NIS password changes to work, but the local root account now has an old-style crypt() based password in the /etc/shadow file.
How can I set things up so that:
1) users in /etc/passwd keep an md5 shadow password
2) NIS users can change their passwords via NIS
Thanks for any help.
-- Steve Bonds
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2010 12:39 PM
тАО02-12-2010 12:39 PM
Re: Linux NIS "Authentication token manipulation error"
Note: HP-UX systems with trusted system won't NIS authenticate to RHEL NIS master.
The root account should not be handled via NIS. You need to be able to get on root with the system in single user mode.
if you exclude root from this configuration you may be okay using md5 shadow. shadow by itself is not so bad though.
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
тАО02-12-2010 12:49 PM
тАО02-12-2010 12:49 PM
Re: Linux NIS "Authentication token manipulation error"
>NIS authenticate to RHEL NIS master.
Noted. In this case the NIS master is an HP-UX system, but I've seen no signs that there's a problem on that end.
>The root account should not be handled via
>NIS. You need to be able to get on
>root with the system in single user mode.
Agreed! In fact, that's really my question...
>if you exclude root from this configuration
>you may be okay using md5 shadow. shadow by
>itself is not so bad though.
How would I exclude root from the configuration? Ideally, I'd like to exclude all users who exist in /etc/passwd, but I'll settle for root if that's all I can get...
Thanks again,
-- Steve Bonds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2010 06:37 PM
тАО02-15-2010 06:37 PM
Re: Linux NIS "Authentication token manipulation error"
passwd: files nis
This will cause the system to prefer the local password and shadow files over the NIS server. If and only if the account does not appear in the files, then it will consult the NIS server. The root and utility accounts should be in the files; users will typically be in the NIS map; for 3rd party applications, it's your judgement call, depending on, among other things, whether the account should be available to every machine in the NIS domain and on whether the 3rd party application install procedure creates the account in the local passwd/shadow files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 11:59 AM
тАО02-16-2010 11:59 AM
Re: Linux NIS "Authentication token manipulation error"
> passwd: files nis
> This will cause the system to prefer the
> local password and shadow files over the NIS
> server. If and only if the account does not
> appear in the files, then it will consult
> the NIS server. The root and utility
> accounts should be in the files; users will
> typically be in the NIS map;
This is the config I'm using-- perhaps it's already working as expected. I will admit I have not yet done an actual simulated network outage to verify that the root account is still accessible...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 02:16 PM
тАО02-16-2010 02:16 PM
SolutionNice first name.
Noted. In this case the NIS master is an HP-UX system, but I've seen no signs that there's a problem on that end.
This is the only way to go with NIS. HP-UX can't function with a Linux master if the master is using the default shadow password configuration.
This issue may be due to issues with Linux NIS. I'd be satisfied however calling it a day and pulling back the md5 option.
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
тАО02-16-2010 02:19 PM
тАО02-16-2010 02:19 PM
Re: Linux NIS "Authentication token manipulation error"
I agree!
> This issue may be due to issues with Linux
> NIS. I'd be satisfied however calling it a
> day and pulling back the md5 option.
That's pretty much where I'm ending up. I'll check that I can log in fine without a network, but otherwise I'll just stick with local crypt() style passwords while forced to use NIS. Clearly those will not be the weak link in system security! :-)
Thanks again for the help, everyone!
-- Steve