kinit failsafe.
[profile.git] / .profile.d / krb5.bashrc
index 9a1f2e9..9938a30 100644 (file)
@@ -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 )'