The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-19-2009
Hari_Ganesh Hari_Ganesh is offline
Registered User
  
 

Join Date: Apr 2009
Location: Chennai
Posts: 50
NIS - Change Password @ first login.

Hi

Any body knows how to prompt user to change password on first login in a Solaris NIS client.

Thanks
HG
  #2 (permalink)  
Old 06-19-2009
rakeshawasthi rakeshawasthi is offline
Registered User
  
 

Join Date: Aug 2004
Location: India
Posts: 379
I dont know but I think here you have some solution, see if it helps...
How to force user to change password at login?
  #3 (permalink)  
Old 06-19-2009
GaneshCPUX GaneshCPUX is offline
Registered User
  
 

Join Date: May 2009
Posts: 21
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
  #4 (permalink)  
Old 06-19-2009
Hari_Ganesh Hari_Ganesh is offline
Registered User
  
 

Join Date: Apr 2009
Location: Chennai
Posts: 50
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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0