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.
|