sudo+nis does not work on SuSE but works on Red Hat
Hi SuSErs, I bumped into a ridiculous problem. I just joined a mixed Solaris/Red Hat environment and introduced a SuSE box into that environment. It uses NIS and sudo quite widely. I changed netgroup setting to nis in my /etc/nsswitch.conf, added a new group to /etc/passwd, created User_Alias in sudoers, restarted nscd. Now sudo rejects my correct password. I tried to replace /etc/pam.d/sudo with contents from /etc/pam.d/su and sudo started to work but it does not ask for any password what I don't like. I compared /etc/pam.d/sudo to the one from Red Hat 7.0, it;s completely different. Red Hat uses pam modules which don't exist on SuSE. I searched the archives of SuSE list but found nothing. Does anybody else use sudo on SuSE in NIS environment? Or is it a privilege of Red Hat to support it? I would hate to fall back to installing Red Hat on my desktop. -Kastus
* Konstantin (Kastus) Shchuka
Hi SuSErs,
I bumped into a ridiculous problem. I just joined a mixed Solaris/Red Hat environment and introduced a SuSE box into that environment. It uses NIS and sudo quite widely.
I changed netgroup setting to nis in my /etc/nsswitch.conf, added a new group to /etc/passwd, created User_Alias in sudoers, restarted nscd.
Now sudo rejects my correct password.
I tried to replace /etc/pam.d/sudo with contents from /etc/pam.d/su and sudo started to work but it does not ask for any password what I don't like.
I compared /etc/pam.d/sudo to the one from Red Hat 7.0, it;s completely different. Red Hat uses pam modules which don't exist on SuSE.
I searched the archives of SuSE list but found nothing.
Does anybody else use sudo on SuSE in NIS environment?
I do all the time, and all I did was add the following line to /etc/sudoers: mmj ALL=(ALL) ALL -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
For some mysterious reason the problem disappeared. I changed /etc/passwd adding/deleting + line, restarted nscd, so now it works. -Kastus On Thu, Jun 07, 2001 at 11:21:53AM -0700, Mads Martin J?rgensen wrote:
* Konstantin (Kastus) Shchuka
[Jun 06. 2001 20:43]: Hi SuSErs,
I bumped into a ridiculous problem. I just joined a mixed Solaris/Red Hat environment and introduced a SuSE box into that environment. It uses NIS and sudo quite widely.
I changed netgroup setting to nis in my /etc/nsswitch.conf, added a new group to /etc/passwd, created User_Alias in sudoers, restarted nscd.
Now sudo rejects my correct password.
I tried to replace /etc/pam.d/sudo with contents from /etc/pam.d/su and sudo started to work but it does not ask for any password what I don't like.
I compared /etc/pam.d/sudo to the one from Red Hat 7.0, it;s completely different. Red Hat uses pam modules which don't exist on SuSE.
I searched the archives of SuSE list but found nothing.
Does anybody else use sudo on SuSE in NIS environment?
I do all the time, and all I did was add the following line to /etc/sudoers:
mmj ALL=(ALL) ALL
-- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (2)
-
Konstantin (Kastus) Shchuka
-
Mads Martin Jørgensen