Operating System - HP-UX
1838648 Members
2282 Online
110128 Solutions
New Discussion

passwd - can it be used in batch mode?

 
SOLVED
Go to solution
Scott Williams_5
Frequent Advisor

passwd - can it be used in batch mode?

I have two questions:
1. On a 11.0 "trusted" system, is there any way to simplify the changing of several hundered user passwords?

2. Do I have to add each user via sam, or is there a faster way?
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: passwd - can it be used in batch mode?

Scott,

You can use 'expect' to do it for you. You need to do some scripting using expect but there are numerous examples that come with this tool. It is very helpful if you have several hundreds of users to be modified.

You can get the tool from


http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.33/

It needs TCL/TK libraries also.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Scott Williams_5
Frequent Advisor

Re: passwd - can it be used in batch mode?

Sounds perfect -- Thanks so much!

Scott