1

So I'm using OpenSuse, and have NIS set up with 2 clients (one opensuse and one centos). When trying to change a user password, you must include the current password. Even as root, on the nis server, it asks for the users current password. Is there something I am missing here?

This isn't a huge deal (It's for class purposes) I'm just really confused about why it's doing it.

  • How precisely are you trying as root to change the user's password? – DopeGhoti Dec 12 '16 at 19:35
  • Logged in as root, through a console typing passwd username, at first I was trying sudo, then tried actually logging in AS root and doing it. Same thing each time. – Tim Dec 12 '16 at 19:48
1

it's not recommended to use passwd as root to change users' passwords on the NIS server. You have to use yppasswd. This command requires the root password to change a user's password. this is used to add a bit of security (you must be the Nis admin).

| improve this answer | |
  • When using yppasswd it gives the message "yppasswd is deprecated, use /usr/bin/passwd instead" and then it uses the passwd command anyways. – Tim Dec 12 '16 at 20:26
  • Ok, then think about moving to LDAP (the new hotness for replacing NIS). It's easier to manage. – Dababi Dec 13 '16 at 13:33
  • Thanks, we were using it for class. It just confused me that it did this! – Tim Dec 15 '16 at 3:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.