- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing user password in HP-UX programmatically
Operating System - HP-UX
1748194
Members
4496
Online
108759
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО05-06-2001 04:10 AM
тАО05-06-2001 04:10 AM
Is there anyway -using shell scripting or C program- to change the user password programmatically. "I thing it can be done using TCL / Expect" but is there any simpler way ???
Thank You
Ahmed
Thank You
Ahmed
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2001 11:19 AM
тАО05-06-2001 11:19 AM
Solution
Yes, man putpwent(3C) (non trusted systems), putprent(3C) (trusted systems), and yppasswd(3N) for NIS environments. You will also need to look at getpass and crypt(3). This is one of the few cases where NIS is probably the easist method. But the process is rather simple in c.
One thing to remember - while doing development
make sure that 1) you have copied a good version of /etc/passwd to a safe place 2) you are logged on as root in at least one other place so that you can replace your corrupt passwd file; and 3) after modifying the passwd file with your code run pwck to make sure all is well.
This should get you started, Clay.
One thing to remember - while doing development
make sure that 1) you have copied a good version of /etc/passwd to a safe place 2) you are logged on as root in at least one other place so that you can replace your corrupt passwd file; and 3) after modifying the passwd file with your code run pwck to make sure all is well.
This should get you started, Clay.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2001 04:01 AM
тАО05-07-2001 04:01 AM
Re: Changing user password in HP-UX programmatically
Hi,
try using the expect tool. You can download and read about it at http://expect.nist.gov
It's really useful for a lot of things.
Cheers,
Theo
try using the expect tool. You can download and read about it at http://expect.nist.gov
It's really useful for a lot of things.
Cheers,
Theo
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP