- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- password management
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
12-16-2002 11:23 AM
12-16-2002 11:23 AM
password management
I would like to control password aging, password length, password content, etc. from one source. Any ideas?
My environment consists of the following:
1 SUN NIS master.
2 HP-UX NIS clients
2 SUN NIS clients
4 standalone HP-UX
1 standalone SUN
10 standalone Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2002 11:56 AM
12-16-2002 11:56 AM
Re: password management
This process is not very difficult but it does require than you can do a bit of C. I have even added options to the replacement yppasswd command to allow options for CGI support so that users can change their passwords using an internal web page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2002 12:11 PM
12-16-2002 12:11 PM
Re: password management
I do not know C so I am looking for a more out of the box method to use on all thre platforms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2002 12:25 PM
12-16-2002 12:25 PM
Re: password management
Because standard UNIX and Solaris expire passwords differently, this is difficult. First, you will have to do this manually, as Solaris will ignore any reference to expiration in an NIS passwd on the server. I have tackled this only 1 time but to your fortune I figured it out.
First, some basic facts. SunOS uses shadow to expire passwords and age them. The only information parsed from the shadow to NIS passwd map is the encrypted key. This brings up a huge problem.
Solution:
First, copy /etc/shadow to /etc/shadow.bak
Now, we need to parse the /etc/shadow to modify the passwd strings and expire them. This is most easily done by tailing the encrypted string with a ",". Comma then a null string mean expire now.
touch /etc/newshadow
cat /etc/shadow|awk -F: '{$1":"$2",:"$3":"$4":"$5":"$6":"$7":"$8":"}' >>/tmp/newshadow
Now, we can get our newly made shadow into place.
mv /tmp/newshadow /etc/shadow
Now, make your NIS maps
cd /var/yp
make
Now move your old shadow back to place
mv /etc/shadow.bak /etc/shadow
Whew, lots of work, but your done except for the biggest problem of all. You will have to schedule a cron job or build a script which handles this chore on whatever schedule you would like.
Standard UNIX supports password aging by placing some additional information after the comma in the encrypted string. SunOS does not support this.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2002 05:26 PM
12-22-2002 05:26 PM
Re: password management
Good Luck!
Jo