From: Iain Patterson Date: Wed, 5 Oct 2011 13:20:11 +0000 (+0100) Subject: kinit failsafe. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=f5a7e98a8d77bd6a74ba040266016f369ca4e2dc;p=profile.git kinit failsafe. If PATH or LD_LIBRARY_PATH contained NFS-mounted directories and Kerberos tickets had expired it would be impossible to run kinit. --- diff --git a/.profile.d/krb5.bashrc b/.profile.d/krb5.bashrc index 9a1f2e9..9938a30 100644 --- a/.profile.d/krb5.bashrc +++ b/.profile.d/krb5.bashrc @@ -1,6 +1,7 @@ alias kssh='ssh -o preferredauthentications=gssapi-with-mic' alias pssh='ssh -o preferredauthentications=password,keyboard-interactive' +unalias kinit 2>/dev/null if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then if tty -s; then if [ ! "$SUDO_UID" ]; then @@ -85,3 +86,4 @@ if [ -z "$OLDSOLARIS" -a -z "$OLDREDHAT" ]; then fi unset cache ccname default ng +alias kinit='( builtin cd /; exec -c kinit )'