- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding user with force user to change 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
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
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
07-13-2005 03:03 PM
07-13-2005 03:03 PM
Can anyone tell is there any way to create a user using useradd command which force the user to change the password at first login, without using passwd command
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 03:13 PM
07-13-2005 03:13 PM
Re: Adding user with force user to change password
The only option is you create a user either with a default password or no password and use password -f username to expire the password.
So as soon as he logs in he is prompted to change the password.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 03:18 PM
07-13-2005 03:18 PM
Re: Adding user with force user to change password
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 03:30 PM
07-13-2005 03:30 PM
SolutionCheck this url below (docID : USECKBRC00009486) :
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063198811
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 04:25 PM
07-13-2005 04:25 PM
Re: Adding user with force user to change password
You need the command
/usr/lbin/modprpw -e
be carefull with this command.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 04:52 PM
07-13-2005 04:52 PM
Re: Adding user with force user to change password
these steps are for non-trusted systems....
1. create a user with this command ----- > # useradd -u 102 -g adm -m -d /home/ind ind
2. issue this command to remove the password for the user --- > # passwd -d username
3. issue this command to ask for a password when he logs in ---- > # passwd -f username
4. check it now , it will work
5. as soon as giving the login name it will
ask for a password , after changing it will come back to login prompt.
6. relogin after changing.....
It has been tested in a test server also by me......
the problem is solved.
regds
Venkatesan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 05:37 PM
07-13-2005 05:37 PM
Re: Adding user with force user to change password
But I wanted to know if there is any way to do it with one command ( useradd ) without using the passwd command.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 05:58 PM
07-13-2005 05:58 PM
Re: Adding user with force user to change password
Check the url that I refer you on my previous post. On that document, they refer to execute the useradd.sam command instead of useradd. This is the command SAM calls when adding a user.
For more details, please check the url and read the document.
Hope this can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 07:02 PM
07-13-2005 07:02 PM
Re: Adding user with force user to change password
Need to try it out.
Just confirm this can be run on a non-trusted system
deepak