- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to change passwd by script
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
07-28-2005 07:57 AM
07-28-2005 07:57 AM
i need to write a script to change passwd for a user on all servers. can i use passwd << EOF to change passwd by scripts.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 08:01 AM
07-28-2005 08:01 AM
Re: how to change passwd by script
See this thread for more discussion on this subject:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=942471
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 08:15 AM
07-28-2005 08:15 AM
Re: how to change passwd by script
http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.43/
in depot format for 11.11 and 11.23 versions as well as its source code for you to compile.
Then you need to peek at the man pages to figure out how to use it for your purpose.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 08:57 AM
07-28-2005 08:57 AM
Re: how to change passwd by script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 09:13 AM
07-28-2005 09:13 AM
Re: how to change passwd by script
CPAN link is here
http://search.cpan.org/~ssnodgra/Unix-ConfigFile-0.06/PasswdFile.pm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 10:44 AM
07-28-2005 10:44 AM
Re: how to change passwd by script
expect is the way to go. You can download expect and try various expect scripting ideas
thanks
devesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2005 12:30 AM
07-29-2005 12:30 AM
Solution/usr/sam/lbin/usermod.sam that can achieve this. The option for passwd change is -p, but i don't remember the exact syntax.
I don't have a HP-UX box right now to verify it, but from my memory it should be
usermod.sam
Please note that this is internal command and no official support can be claimed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2005 02:44 AM
07-29-2005 02:44 AM
Re: how to change passwd by script
i just check usermod.sam it is link to usermod which is used for change uid gid hoe dir and so on , not for passwd.
i remember we can just copy and paste on the passwd field in passwd file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2005 02:48 AM
07-29-2005 02:48 AM
Re: how to change passwd by script
UNIX because I majored in cryptology...