Monday, March 1, 2010

Solaris: Troubleshooting: NIS

Sometimes when we try to create an user account, soon after deleting our NIS domain, we may face the following error.

Output for kind ref:


bash-3.00# useradd -m -d /export/home/lingesh lingesh
64 blocks
bash-3.00# passwd lingesh
New Password:
Re-enter new Password:
Permission denied


This shows that, the user account can be created, where as password cannot be assigned to the newly created user account.

In this case we have to follow the following step.

bash-3.00# cp /etc/nsswitch.files /etc/nsswitch.conf

The above command replace /etc/nsswitch.conf to the default template.


Output for kind ref:

bash-3.00# passwd lingesh
New Password:
Re-enter new Password:
passwd: password successfully changed for lingesh

No comments:

Post a Comment