|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to force a user to change the password
RHEL 5 update 4. How to force a user to change the password at his next logon.
Thanks in advance. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
You can force a password to immediately expire with Code:
chage -d 0 username |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
when we use option -d , user cannot login(rhel5.2, ssh4.3). |
|
#4
|
|||
|
|||
|
Did they ever have a password before? If not, you need to create one for them. This will not force their first password.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Quote:
================== # grep ratcha /etc/passwd /etc/shadow /etc/passwd:ratcha.c:x:510:500:System Admin:/home/ratcha.c:/bin/ksh /etc/shadow:ratcha.c:$1$O1z5V6.2$en8cRSXbDS0VGAT/XHbEZ/:14515:7:90:7::: # passwd -d ratcha.c Removing password for user ratcha.c. passwd: Success # # grep ratcha /etc/passwd /etc/shadow /etc/passwd:ratcha.c:x:510:500:System Admin:/home/ratcha.c:/bin/ksh /etc/shadow:ratcha.c::14515:7:90:7::: # ssh ratcha.c@localhost The authenticity of host 'localhost (127.0.0.1)' can't be established. RSA key fingerprint is e6:6b:cd:ce:7c:c2:60:f5:22:f8:23:ac:f0:8b:ae:f6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'localhost' (RSA) to the list of known hosts. ratcha.c@localhost's password: Permission denied, please try again. ratcha.c@localhost's password: Permission denied, please try again. ratcha.c@localhost's password: Permission denied (publickey,gssapi-with-mic,password). ================= |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
Chage -d should work. Can you log in as that user on the console?
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
But I want to test force them to change password at first login. Why option -d not work for me ??? |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| force to change password(by modifying /etc/shadow) | tjay83 | Shell Programming and Scripting | 6 | 09-27-2008 07:56 AM |
| force to change password(shell script) | tjay83 | Shell Programming and Scripting | 3 | 09-18-2008 11:16 PM |
| Force to change to a different password | champion | UNIX for Advanced & Expert Users | 3 | 01-16-2003 12:01 PM |
| How to force user to change password at login? | penguin-friend | UNIX for Advanced & Expert Users | 10 | 07-08-2002 10:46 AM |
| Force Password Change...RedHat 7.1 | vancouver_joe | UNIX for Advanced & Expert Users | 1 | 02-22-2002 01:12 AM |
|
|