HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: login script
Operating System - HP-UX
1835069
Members
2224
Online
110073
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
04-17-2003 10:44 AM
04-17-2003 10:44 AM
login script
Hi! I'm trying to develop a script to create a user login and create a default password for this login that the user will be forced to change the first time they log in. I can create the login, but need help with setting up the expiring password from within a script. Please advise, and thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 10:51 AM
04-17-2003 10:51 AM
Re: login script
add these to your script,
passwd -d
passwd -f
The first line will remove the "*" from the password field and the second line will force the user to enter a new password.
passwd -d
passwd -f
The first line will remove the "*" from the password field and the second line will force the user to enter a new password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 06:37 AM
04-18-2003 06:37 AM
Re: login script
Gloria,
If you've already got the account created, the man page for passwd seems to say you could use the -x and -f options to set expiration (in days) and immediately force the user change the password.
Try something like:
passwd
passwd -x -f
Good Luck!
Seth
If you've already got the account created, the man page for passwd seems to say you could use the -x and -f options to set expiration (in days) and immediately force the user change the password.
Try something like:
passwd
passwd -x
Good Luck!
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 08:45 AM
04-18-2003 08:45 AM
Re: login script
Hi Gloria:
Check this out. It was posted yesterday:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x39279607df6ed711abdc0090277a778c,00.html
Regards,
DR
Check this out. It was posted yesterday:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x39279607df6ed711abdc0090277a778c,00.html
Regards,
DR
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