[Bug 918035] [NEW] adduser not working with nis
Dirk Seidel
918035 at bugs.launchpad.net
Wed Jan 18 06:43:08 UTC 2012
Public bug reported:
I have installed NIS on our servers (Ubuntu Server 10.04.3, all updates
installed). Everything is working fine, except for one thing.
I added "nis" in /etc/pam.d/common-password:
password [success=1 default=ignore] pam_unix.so obscure sha512 nis
Users can now change their passwords on any machine using passwd in the usual way. This works fine.
The problem arises if I try to change passwords for root or for a user as root. passwd asks for "NIS server root password:", but at that point I have to enter the root or the users(!) password, depending on which password I try to change. So I am not able to change passwords as root if I don't know the users password.
In addition, if I try to add a user with adduser, it is not possible to set the users password at all. At the stage where passwd is executed an entry for the new user in /etc/shadow exists, but is disabled with a "!" in the password hash field. It seems that nothing works for "NIS server root password:". I have tried the root password and simply "enter".
** Affects: pam (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/918035
Title:
adduser not working with nis
Status in “pam” package in Ubuntu:
New
Bug description:
I have installed NIS on our servers (Ubuntu Server 10.04.3, all
updates installed). Everything is working fine, except for one thing.
I added "nis" in /etc/pam.d/common-password:
password [success=1 default=ignore] pam_unix.so obscure sha512 nis
Users can now change their passwords on any machine using passwd in the usual way. This works fine.
The problem arises if I try to change passwords for root or for a user as root. passwd asks for "NIS server root password:", but at that point I have to enter the root or the users(!) password, depending on which password I try to change. So I am not able to change passwords as root if I don't know the users password.
In addition, if I try to add a user with adduser, it is not possible to set the users password at all. At the stage where passwd is executed an entry for the new user in /etc/shadow exists, but is disabled with a "!" in the password hash field. It seems that nothing works for "NIS server root password:". I have tried the root password and simply "enter".
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/918035/+subscriptions
More information about the foundations-bugs
mailing list