Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-02-2009, 11:10 AM   #1
Ron Parker
LQ Newbie
Registered: Jul 2009
Posts: 5

Rep: Reputation: 1
Question 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


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.
Old 07-16-2009, 10:12 AM   #2
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,938

Rep: Reputation: 128Reputation: 128
Did you try naming your new build openssh-5.2p1-x86_64-3 and then
using "upgradepkg openssh-5.2p1-x86_64-3" ?
Old 07-17-2009, 12:24 PM   #3
Ron Parker
LQ Newbie
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Originally Posted by Bruce Hill View Post
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
passwordless OpenSSH with MIT-Kerberos and PAM dbalsige Linux - Software 1 11-12-2009 01:12 PM
LXer: Trying OpenSSH in Debian Etch ... plus thoughts on security, sudo and nano vs. LXer Syndicated Linux News 0 03-05-2008 08:30 AM
no usb support, how can it be added sir-lancealot DamnSmallLinux 6 12-17-2007 07:46 PM
Can you have "sudo" automatically added to each line in the CLI? Free_beer Ubuntu 7 09-29-2006 04:59 PM
Webmail with Kerberos support nocturn00 Linux - Networking 0 08-09-2005 08:19 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration