HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NIS and Expired passwords.
Operating System - HP-UX
1833788
Members
2076
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-28-2005 01:37 AM
06-28-2005 01:37 AM
NIS and Expired passwords.
Hello All,
I have a NIS setup which takes care of user login in my network. I am in need to force an user to change password at the next login by expiring the password. for NISPLUS it can be done with
nispasswd -f username
How it can be achieved in NIS ?
Advance thanks for your help...
I have a NIS setup which takes care of user login in my network. I am in need to force an user to change password at the next login by expiring the password. for NISPLUS it can be done with
nispasswd -f username
How it can be achieved in NIS ?
Advance thanks for your help...
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 03:47 AM
06-28-2005 03:47 AM
Re: NIS and Expired passwords.
Hi Michael,
The easiest way I've found to do this is to add the string ",." to the users' encrypted password string in the /etc/passwd file (or whatever file is used to build the passwd NIS map) on the NIS Master server. For example:
OLD: testu:wBCSmXWwbieiE:107:20:,,,:/home/testu:/usr/bin/ksh
NEW: testu:wBCSmXWwbieiE,.:107:20:,,,:/home/testu:/usr/bin/ksh
Then rebuild/distribute the passwd maps with ypmake.
By adding the ",." to the end of the encrypted password string, this effectively tells the system that the password has expired and must be changed at next login.
I've tried this on my NIS Master system and it seems to work fine.
Hope this helps,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
The easiest way I've found to do this is to add the string ",." to the users' encrypted password string in the /etc/passwd file (or whatever file is used to build the passwd NIS map) on the NIS Master server. For example:
OLD: testu:wBCSmXWwbieiE:107:20:,,,:/home/testu:/usr/bin/ksh
NEW: testu:wBCSmXWwbieiE,.:107:20:,,,:/home/testu:/usr/bin/ksh
Then rebuild/distribute the passwd maps with ypmake.
By adding the ",." to the end of the encrypted password string, this effectively tells the system that the password has expired and must be changed at next login.
I've tried this on my NIS Master system and it seems to work fine.
Hope this helps,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP