HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using useradd.sam
Operating System - HP-UX
1834345
Members
1706
Online
110066
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
06-14-2001 11:43 PM
06-14-2001 11:43 PM
Using useradd.sam
I've found /usr/sam/lbin/useradd.sam and was hoping that perhaps it could provide a bit more functionality to the usual /usr/sbin/useradd, in that useradd.sam has a -p argument.
This would enable me to set initial passwords for specific accounts (useful when the account is being used by say, operators, and I don't want to provide a "set password at first login" option, 'cos the new password invariably doesn't get passed to all the shifts.)
Unfortunately, setting a users password with this flag renders the password unhashed in /etc/passwd and it is placed in the 2nd field as a literal string;
./useradd.sam -p password -u 801 -g 20 -d /home/test -s /usr/bin/ksh test
test:password:801:20::/home/test:/usr/bin/ksh
Anyone know any workarounds for being able to use the -p option in real life? For standard fixed accounts where a password is already in use on other machines, I can use the hashed password, but at the moment this -p implementation is a bit of a showstopper
This would enable me to set initial passwords for specific accounts (useful when the account is being used by say, operators, and I don't want to provide a "set password at first login" option, 'cos the new password invariably doesn't get passed to all the shifts.)
Unfortunately, setting a users password with this flag renders the password unhashed in /etc/passwd and it is placed in the 2nd field as a literal string;
./useradd.sam -p password -u 801 -g 20 -d /home/test -s /usr/bin/ksh test
test:password:801:20::/home/test:/usr/bin/ksh
Anyone know any workarounds for being able to use the -p option in real life? For standard fixed accounts where a password is already in use on other machines, I can use the hashed password, but at the moment this -p implementation is a bit of a showstopper
"It doesn't have to be like this. All we need to do is make sure we keep talking"(Dave Gilmour)
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 12:55 AM
06-15-2001 12:55 AM
Re: Using useradd.sam
Hi,
you can use useradd.sam -p ",.." ...
the new user than doesn?t have a Password but is forced by the next Login to change the password
you can use useradd.sam -p ",.." ...
the new user than doesn?t have a Password but is forced by the next Login to change the password
Hier arbeitet die Firma Rast und Ruh; Vormittags geschlossen und Nachmittags ist zu !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2001 09:13 AM
06-16-2001 09:13 AM
Re: Using useradd.sam
If use usermod.sam -w "encryptedpasswd" it will put that in to the tcb/files/[a-z]/usename database entry. We used to use modprpw -w but they changed the behaviour in 11.x
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