LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Added Kerberos support to OpenSSH and sudo broke (https://www.linuxquestions.org/questions/slackware-14/added-kerberos-support-to-openssh-and-sudo-broke-737214/)

Ron Parker 07-02-2009 10:10 AM

Added Kerberos support to OpenSSH and sudo broke
 
I need MIT Kerberos 5 support in OpenSSH at work. I am running Slackware64-current, so I grabbed the contents of the n/openssh source directory and modified the openssh.SlackBuild thusly:

diff --git a/openssh.SlackBuild b/openssh.SlackBuild
index 4a66113..3632363 100644
--- a/openssh.SlackBuild
+++ b/openssh.SlackBuild
@@ -30,7 +30,7 @@ PKG=$TMP/package-openssh

VERSION=${VERSION:-5.2p1}
ARCH=${ARCH:-x86_64}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-2.krb5}

if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -62,6 +62,7 @@ CFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--sysconfdir=/etc/ssh \
--without-pam \
+ --with-kerberos5 \
--with-md5-passwords \
--with-tcp-wrappers \
--with-default-path=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin \

After removing the original openssh package, building this modified version, and installing it sudo now fails:

$ sudo echo
sudo: can't open /etc/sudoers: Permission denied

It will not work again until I remove this version and reinstall the original. It even continues working at that point if I uninstall the original openssh again.

In both cases I am using openssh-5.2p1-x86_64-2.

Bruce Hill 07-16-2009 09:12 AM

Did you try naming your new build openssh-5.2p1-x86_64-3 and then
using "upgradepkg openssh-5.2p1-x86_64-3" ?

Ron Parker 07-17-2009 11:24 AM

Quote:

Originally Posted by Bruce Hill (Post 3609585)
Did you try naming your new build openssh-5.2p1-x86_64-3 and then
using "upgradepkg openssh-5.2p1-x86_64-3" ?

The problem seems to have gone away through some combination of uninstalls, reinstalls, and slackware64-current updates. If it reoccurs, I will try this.

Thanks


All times are GMT -5. The time now is 10:55 PM.