Missing Secure-RPC password


I had a user who forgot a password.  After changing it, when you log in with
that username, you get a message saying "Password does not decrypt secret key "

When you try to change the key with chkey -p, it asks for the old Secure-RPC password,
which of course no one knows.

Now, I think I can just use "nisclient -c -o username" and enter in the new password,
but I wanted to get a second opinion before I went off and did this.
Patrick_BaldwinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yuzhCommented:
After login, the user must run keylogin to get their credentials.

man keylogin
to learn more details.

If you still have problem, please let use know if you are using NIS or NIS+.
0
Patrick_BaldwinAuthor Commented:
keylogin also requires the old password- the problem is that the user forgot
said old password, which is why I'm changing it.

As far as I can tell, we're using NIS+
0
yuzhCommented:
If you don't know the user's password, you need to login as root to the NIS+ master server and change the user's password, here's the procedure:
(please remember to replace "user_name" with the read login name of the user
$USRID with the UID of the user)

1) reset the passwd
   nispasswd user_name
2) update NIS+  credentials
    nisaddcred -r user_name.`domainname` `domainname`

    nisaddcred -p unix.${USRID}@`domainname` -P user_name.`domainname`. des

     nisaddcred -p ${USRID} -P user_name.`domainname`. local

     man  nisaddcred
     to learn more details

3) type in:
    /usr/lib/nis/nisping
    man nisping
    to learn more deatils.

4) wait for a few minutes (it depends on your network), the user should have no
    problem to login to the nis+ clients.
   
   Also have a look at the NIS+ FAQ:

   http://www.eng.auburn.edu/users/rayh/solaris/NIS+_FAQ.html
   keep a copy handy, it can help you for most of your NIS+ problem.

   Cheers!

yuzh
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
XoFCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: yuzh

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

-XoF-
EE Cleanup Volunteer
0
yuzhCommented:
For NIS+ the correct answer is http:#16388055
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.