We currently have 6 Sun servers of various models, all running Solaris 9. I've been tasked with implementing global password aging for all these hosts.
I know that I can set global values for use when creating new users, by modifying /etc/default/passwd (although I would prefer to set it in days, not weeks, but that's not the issue).
My big problem is, I have at least 200 accounts each, on half of the servers - and I readlly, really don't want to have to hand-edit /etc/shadow to add the approporate values. admintool doesn't seem to suit my needs either.
Does anyone know of a relatively easy way - aside from building a script to insert the values - to implement password aging for all existing accounts?
Thanks much in advance.

Answer Wiki

I’m actually surprised nobody has replied to this, it’s not that hard to write a script to do this. In fact, I just so happen to have one. I know this board likes to change code formatting, so I put it here ~> http://www.semitekie.com/viewtopic.php?p=6#6

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 1 &nbspReply

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Thanks for the reply, and for pointing me to a good script.
I may have to go that route, but I was trying to avoiid doing so, because we have some userIDs that are generic for applications and should not be aged. I guess I'll have to build a list by hand, then dump those IDs into a script.
Thanks anyway.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy