- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SAM, TCB & Changing a users Password
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
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
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
тАО04-10-2001 11:54 AM
тАО04-10-2001 11:54 AM
SAM, TCB & Changing a users Password
I have a little problem when using SAM to add a new user ...
1. I add the user
2. I get a password for the user from SAM/TCB.
3. I have to then find the user, and Modify the password to a standard new password (something like newpassword)
4. And then manually tell SAM to set the expiration to now (so the user will have to change the password).
Now I managed to script a part of SAM to expire the password staright after I created the account (using the POST conditions), but I can not find a way to automate the change of password.
I have to go find the user (I have over a 1000), and then manually change. Or I have to go out into shell and run passwd.
I tried running passwd in the POST condition script, but that just hangs SAM.
I know it doesn't seem like much, but when you have to create 200 users it gets very tiring.
Is there any way that I can use a command (without interaction) to create a new password??
Or, Is there a setting that will tell SAM to let me pick the password at creation (not the Security Setting "Let User decide" , because that still gives me the SAM generated password) ...??
HELP ... HELP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 12:14 PM
тАО04-10-2001 12:14 PM
Re: SAM, TCB & Changing a users Password
on the command line you can also force password change at next login by typing:
passwd -f username
Hope this helps.
Jim Moffitt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2001 12:20 PM
тАО04-10-2001 12:20 PM
Re: SAM, TCB & Changing a users Password
You are talking about normal systems ...
Not TCB ...
Anyone else ....??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 05:41 AM
тАО04-11-2001 05:41 AM
Re: SAM, TCB & Changing a users Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2001 05:55 AM
тАО04-11-2001 05:55 AM
Re: SAM, TCB & Changing a users Password
But I can not find reference to a -w on the HP web site ....
So I can supply a password in normal text ...
e.g. modprpw -w testpassword
????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 11:44 AM
тАО04-12-2001 11:44 AM
Re: SAM, TCB & Changing a users Password
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe505a22d6d27d5118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 12:29 PM
тАО04-12-2001 12:29 PM
Re: SAM, TCB & Changing a users Password
To accomplish your task, you'll want to sharpen up your C pencil.
Depending on the options you chose for Trusted HP-UX, we've done something like
/usr/sam/lbin/useradd.sam -g
where password is an already crypted password returned by C's crypt() function. In our setup, we also had to "activate" the account by making the password's last changed date current, so that the user isn't prompted to change their password during login. Here's a snippet of code that did the trick:
localpr_passwdent=*mypr_passwdent;
localpr_passwdent.ufld.fd_schange=time(NULL);
localpr_passwdent.uflg.fg_schange=1;
if (putprpwnam(localpr_passwdent.ufld.fd_name, &localpr_passwdent)==0) {
printf("activate: password modify failed\n");
}
Note, if you extract existing passwords from the TCB of one host to bulk build accounts on another host, you don't need the crypt function. The passwords are already crypted.
We used a C program to extract the old account information into a tab delimited file. Then we used a script in conjunction with the "activate" code to set up the accounts on the new system.