NIS - Change Password @ first login.


 
Thread Tools Search this Thread
Operating Systems Solaris NIS - Change Password @ first login.
# 1  
Old 06-19-2009
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  
Old 06-19-2009
I dont know but I think here you have some solution, see if it helps...
https://www.unix.com/unix-advanced-ex...ord-login.html
# 3  
Old 06-19-2009
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  
Old 06-19-2009
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. Solaris

Change Password on First Login

Hi there, Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies

3. Shell Programming and Scripting

Bulk NIS Users Password Change

Hi All, I am having Solaris 5.10 acting as NIS. How do i change multiple user password in NIS in a batch. I have predefined users with their passwords to be set: Example: user1 password1 user2 password2 Pls advise. (0 Replies)
Discussion started by: yogajwa
0 Replies

4. UNIX for Advanced & Expert Users

Change login password for SFTP Only ID

Hi All, I have an SFTP server where there are user id's created for vendors and given only SFTP access for them (eg: given below) jim.tran:x:10040:10008:abc.def@ghi.com:/dropbox:/bin/false They cannot login to the server via SSH and can only do an SFTP. These users are set up as jailed... (1 Reply)
Discussion started by: nathsaba
1 Replies

5. Solaris

Incorrect login NIS?

Hello, I have an issue with a NIS client station on my network. I can't log onto with any NIS login and it prompt "Login incorrectl please try again". My others stations work correctly and log on without problem. This station worked correctly before yesterday, but yesterday we've got a power... (5 Replies)
Discussion started by: Juterassee
5 Replies

6. Solaris

NIS Password

Greetings All, I am newbie to Unix. Have the following issue: Users are unable to change their password themselves. After they ash to a specific box (NIS Account is extended to that box)and then su as them with an assigned password and run command to change the password they get this error: ... (2 Replies)
Discussion started by: cardiner
2 Replies

7. UNIX for Advanced & Expert Users

unable to change user password from nis client

I trying to change the user1 passwd from NIS client i.e #passwd -r nis user1 Enter user1's password; Can I change the password without having to enter user password? Mnay Thanks (1 Reply)
Discussion started by: sam786
1 Replies

8. UNIX for Dummies Questions & Answers

NIS login discrepancy

I have a query in relation to a couple of machines I have set up. We will call them machine SUN and HPUX and they are running those operating systems respectively. The SUN machine is acting as an NIS server and the HPUX machine as an NIS client. Now the HPUX machine also has a an auto mounted file... (11 Replies)
Discussion started by: Henrik
11 Replies

9. UNIX for Dummies Questions & Answers

Password change at login????

I want Red Hat Linux 7.2 prompt for new password at next login time. How can I do this????? passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies
Login or Register to Ask a Question