Changing Password in NIS


 
Thread Tools Search this Thread
Operating Systems Solaris Changing Password in NIS
# 1  
Old 11-12-2008
Changing Password in NIS

Friends

I want to know whether i can change the password of a user logged in thru NIS from a client machine after stopping the YP services in NIS server.
Note - The Slave server is up and running.

I tried doing this. But i got the reply "Permission Denied".

I stopped the YP services in NIS server using the command "/usr/lib/netsvc/yp/ypstop".

I tried changing the password in the client in the below manner:
[!]root: yppasswd d08083
Enter d08083's password:
New Password:
Re-enter new Password:
Permission denied

Output of ypcat passwd in client:
[!]root: ypcat passwd
d98680:##d98680:205:14:Salil Nair, IT:/users/d98680:/bin/ksh
d12482:##d12482:5017:1:Ajay More:/users/d12482:/bin/ksh
d12381:##d12381:5015:100:Renjesh Raju:/users/d12381:/bin/ksh
d11939:##d11939:5014:100:Ovais Tawa:/users/d11939:/bin/ksh
d08083:##d08083:207:100:Hari Ganesh, IT:/users/d08083:/bin/ksh
gdm:##gdm:50:50:GDM Reserved UID:/:

Please let me know if any more logs are required.

My question is if the YP services stop in NIS server,will users be unable to change the password until it's up?

Thanks
HG
efunds
# 2  
Old 11-12-2008
Friends

Just found the following error in the /var/adm/messages file:

passwd[23230]: [ID 100979 user.error] passwdutil.so: couldn't create client to YP master

Thanks
HG
efunds
# 3  
Old 11-12-2008
You can't change a user's password if the NIS master is off. The slave servers are read-only caches to speed-up name resolution. AFAIK, there can only be a single repository with NIS. You can use ldap as name service back-end to allow write availability.
# 4  
Old 11-13-2008
Thanks,Jlliagre for the response.

Friends,
I have one more question as of now. Is there any way by which the NIS user will be able to create a Home directory of his own in any of the clients he logs on to. Just like the way we have in windows AD;where a new user when logging into a client creates his own home directory.
In my environment,NFS service is not allowed. So mounting the home directories is not possible.

Thanks - in - Advance.
efunds
# 5  
Old 11-13-2008
Gnu/Linux users do it with pam_mkhomedir.

On Solaris, a simple shell script and autofs can provide the same functionality:

Bug ID: 6211761 solaris should have a pam_mkhomedir PAM module
# 6  
Old 11-13-2008
Sorry jlliagre,though i got the idea,i didn't know how to get that executed.
Can somebody please throw more light?
efunds
# 7  
Old 11-13-2008
The workaround is clearly explained in the link I posted although you'll need to adapt it should you use UFS instead of ZFS.
What exactly are you missing ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing Passwd on Many servers that is not NIS

Hi Expert, I have environment where password is locally managed, not NIS, not LDAP, not Centrally managed. In order to access to this environment I have to use Jump Box, and only from jumpbox I can login to every host. I can't login direct from inside one host within that environment to... (1 Reply)
Discussion started by: regmaster
1 Replies

2. Red Hat

NIS password policy

Hi, I am running NIS server on redhat linux 5 and I want to implement password restrictions for the yppasswd, how can I do it.Please help me. I can implement password restriction for passwd by configuring /etc/pam.d/system-auth and setting crack_lib.so but I don't know how to implent the same... (3 Replies)
Discussion started by: ktrimu
3 Replies

3. Solaris

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 (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

4. 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

5. Red Hat

Password Ageing NIS

I have a RHEL 5 NIS server. It seems to be working fine except for password ageing. If passwords expire in the shadow file then users are still able to log on with no problems and no notifications. Does anyone know how to turn password ageing on through NIS? (4 Replies)
Discussion started by: darren.wyatt
4 Replies

6. Solaris

NIS password file update issue

Hi Our nis server running on Sun solaris 8 operating system. I have added a new user in the nis passwd file & when I am trying to update the file from nis server by using following command: # cd /var/yp # make updated passwd It updates the passwd file but does not come back to command... (3 Replies)
Discussion started by: dolphin
3 Replies

7. Shell Programming and Scripting

is there anyway of implementing password aging in NIS?

Hi , is there anyway of implementing password aging in NIS? I would say thanks in advance. Thanks and regards, HAA (1 Reply)
Discussion started by: HAA
1 Replies

8. Solaris

problem in changing the NIS passwd

Now I face a problem in changing the NIS passwd,I have no idea,want you to help me! Today I add some user in the NIS master server ,I "vi" /etc/passwd &/etc/shadow,add user account and password by hand(shadow----no password ,only eight ":"). when finsh,I login ,system told me to input a password... (3 Replies)
Discussion started by: dlsjm
3 Replies

9. Solaris

Problem in changing password in NIS

Hi, I need help urgently. I've been running NIS for 4 years without problem. And just two weeks ago, all my users are unable to change their password which never happens before. When we issue passwd or yppasswd, this is what we get passwd : Changing password for Jennifer Enter existing... (2 Replies)
Discussion started by: jennifer
2 Replies

10. UNIX for Dummies Questions & Answers

Password Changing With NIS

SCO OpenServer 5.05 Has anyone ever received this error when attempting to change/assign a user password? #ypasswd ======================================= yppasswd: (host name) is not running yppasswd daemon Password request denied. Reason: Remote password change request denied.... (2 Replies)
Discussion started by: gseyforth
2 Replies
Login or Register to Ask a Question