-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo constantly asking for password with LDAP SSH user. #87
Comments
Yes, that is the problem. Your new version of sudo doesn't appear to have been built with PAM support. You don't say whether you build sudo yourself or used a pre-built package. If you used a package, where did it come from? From the sudo 1.8.16 output you can see the configure options that version of sudo was built with. It appears that for 1.9.5p2 the defaults were chosen and for some reason PAM was not found (perhaps the pam devel libs were not present). You should be able to use the 1.9.5p2 Ubuntu 16.04 sudo package from github or the sudo.ws website which will have PAM support. |
If you would like to build your own sudo package, the easiest method is to run ./scripts/mkpkg from the sudo source dir (or use the appropriate path if using a separate build dir). That will build a package with the same configure options as the ones on github and sudo.ws. You will need to have at least the following packages installed build the package: build-essential ed dpkg-dev libldap2-dev libpam0g-dev libsasl2-dev libselinux1-dev libsepol1-dev zlib1g libaudit-dev fakeroot libssl-dev python3-dev libpython3-dev |
@millert : I built the sudo package by following command:
I did not set any option in configure step which might causing the issue. I try to install pre-build package https://github.com/sudo-project/sudo/releases/download/SUDO_1_9_5p2/sudo_1.9.5-3_ubu1604_amd64.deb, but the issue still occur
did I miss something? |
You now have sudo installed in two locations. The sudo package installs things in /usr but the one you built puts them in /usr/local. |
I tried to uninstall the one I build by "make uninstall", but got the error
|
This is due to a typo in plugin/sudoers/Makefile. In the uninstall target there should be a backslash at the end of the line that removes sudoreplay (like there already is for cvtsudoers). There is another missing backslash in doc/Makefile removing the sudoers_timestamp manual. |
Thanks @millert , I can fixed the issue by uninstall the wrong package and reinstall with pre-built package in sudo.ws website |
Hello,
I'm using Ubuntu 16.04, just upgraded sudo from version 1.8.16 to 1.9.5p2. When I SSH to server by LDAP account, I try to run some sudo command, the server require to input password constantly, I'm sure that I input a correct password, but in auth.log show I entered incorrect password.
Feb 2 10:28:05 sin-rcr01 sudo: AVN\ttdung : 3 incorrect password attempts ; TTY=pts/1 ; PWD=/home/AVN/ttdung ; USER=root ; COMMAND=/bin/su
This is sudo -V of sudo 1.9.5
Here is output of sudo 1.8.16 before upgrading:
I think the difference is "Authentication methods", the new version using "passwd" method instead of "pam", How can I change it?
Thanks.
The text was updated successfully, but these errors were encountered: