- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to force password change at 1st login?
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
05-09-2002 07:48 AM
05-09-2002 07:48 AM
How to force password change at 1st login?
Anyone know how to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:55 AM
05-09-2002 08:55 AM
Re: How to force password change at 1st login?
for example you setup blanck password on /etc/passwd file then
#passwd -f sachin
newpasswd:*****
newpasswd:****
now when user sachin logs on with temporary passwd system will ask him to change his passwd.
-f This option forces the user to enter a new password on the next login.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:58 AM
05-09-2002 08:58 AM
Re: How to force password change at 1st login?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 05:39 PM
05-09-2002 05:39 PM
Re: How to force password change at 1st login?
What 'shell' are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 05:39 AM
05-10-2002 05:39 AM
Re: How to force password change at 1st login?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 06:39 AM
05-10-2002 06:39 AM
Re: How to force password change at 1st login?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 06:48 AM
05-10-2002 06:48 AM
Re: How to force password change at 1st login?
I've just tried adding users with useradd, and through GNOME's interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 06:43 AM
05-12-2002 06:43 AM
Re: How to force password change at 1st login?
For the system to prompt for a new password at first login, the -f option should work:
# passwd -f temp3991
#
The user will login like this
login: temp
passwd: ######## (say temp3991)
new passwd: ########
new passwd: ########
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 04:18 PM
05-12-2002 04:18 PM
Re: How to force password change at 1st login?
*finds a 7.2 box*
*tests*
ugh..
*reads documentation again*
ugh..
*plays some more*
ugh!
Ok.
1) passwd -f is NOT force user to change a next login. the '-f' flag under RH7.2 is for foricbly unlocking an account which has only an '!' in the password field.
2) Changing the "Password expires in" x "days" field to 0 doesn't force it to change the password now.
3) I'm having a bad morning :(
After reading through far too many man pages in a morning than could possibly be good for a person, I'm having to admit that you'll probably need a scripted solution in order to achieve this goal, or find a utility on the 'net that will do it for you (possibly a PAM plugin).
Unfortunately, I was unable to find such a thing in a quick 10 minute search.
Sorry.