![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH Password-less login fails on password expiry. | Renjesh | SUN Solaris | 2 | 04-24-2009 01:53 AM |
| how to change root password using shell script with standard password | kurva | Shell Programming and Scripting | 2 | 02-25-2009 02:35 AM |
| Change password by pushing encrypted password to systems | benq70 | UNIX for Dummies Questions & Answers | 1 | 09-02-2005 10:08 AM |
| Password change at login???? | rrivas | UNIX for Dummies Questions & Answers | 4 | 08-12-2002 07:02 PM |
| How to force user to change password at login? | penguin-friend | UNIX for Advanced & Expert Users | 10 | 07-08-2002 11:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I dont know but I think here you have some solution, see if it helps...
How to force user to change password at login? |
|
||||
|
Just use the command
# passwd -f <user-Name> with -f the system wil force any login user to change his password You can put this in a script like #!/bin/ksh IFS=':' while read a b c d e f g do passwd -f $a done < /tmp/passwd_file_copy IMP: before you run this script copy the passwd file to the /tmp with name passwd_file_copy and remove from it the users that will not change the passwd for them like root, sys .. you can do this by the grep command |
|
||||
|
Friends,
Thanks for the links,but they didn't server my cause. 1. passwd -r nis -f <username> -f only applies to files or nisplus repository usage: NIS doesn't seem to support -f option 2. Admin tool is not running in my server and even if i am able to get it,the tool will only be showing the users in /etc/passwd file and not the NIS repo which is /etc/nis/passwd(in my environment). Please correct me if i am wrong. HG |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|