HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding users (programmatically, in bulk, or via co...
Operating System - HP-UX
1830203
Members
19527
Online
109999
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
01-22-2001 02:27 PM
01-22-2001 02:27 PM
Adding users (programmatically, in bulk, or via command line)
HP-UX 10.20 or 11.0/Trusted
I've seen a lot of stuff on forums and Deja regarding useradd.sam. It works as advertised (sort of).
When the accounts are built, the accounts force the user to change their password on first login. We'd like to stick with the provisioned password, so users don't have to use telnet.
We want to build/manage user accounts end-to-end without the requiring the user to have telnet access.
They'll manage their password changes using alternative mechanisms that we provide.
I've tried manipulating the tcb entries using setprpwent to no avail. The docs don't really explain the API.
Anybody got ideas/pointers.
I've seen a lot of stuff on forums and Deja regarding useradd.sam. It works as advertised (sort of).
When the accounts are built, the accounts force the user to change their password on first login. We'd like to stick with the provisioned password, so users don't have to use telnet.
We want to build/manage user accounts end-to-end without the requiring the user to have telnet access.
They'll manage their password changes using alternative mechanisms that we provide.
I've tried manipulating the tcb entries using setprpwent to no avail. The docs don't really explain the API.
Anybody got ideas/pointers.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2001 07:46 PM
01-22-2001 07:46 PM
Re: Adding users (programmatically, in bulk, or via command line)
I figured it out this evening. To get the users active, a little C program will help.
For a database record, updating the following fields will activate the account without forcing a user to telnet in or modify a password (after the user was added using useradd.sam:
/* Set the last successful password change to now */
mypr_passwdent.ufld.fd_schange=time(NULL);
/* Tell the tcb the last succesful password change field is set */
mypr_passwdent.uflg.fg_schange=1;
For a database record, updating the following fields will activate the account without forcing a user to telnet in or modify a password (after the user was added using useradd.sam:
/* Set the last successful password change to now */
mypr_passwdent.ufld.fd_schange=time(NULL);
/* Tell the tcb the last succesful password change field is set */
mypr_passwdent.uflg.fg_schange=1;
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP