otherwise. This solves the issue of NFS picking the wrong credentials to
identify the user.
* with-creds: set -e so failures cause it to stop
# $LastChangedBy$
#
+set -e
+
function usage {
cat >&2 <<EOH
Usage: $0 -i service_part -r REALM -u user [command]"
EXTRAOPTS="-t"
fi
-export KRB5CCNAME=/var/tmp/krb5cc_${UID}_${KRBUSER}_${userpart}
+TMPDIR=/tmp
+if [ -w /dev/shm ]; then
+ TMPDIR="/dev/shm"
+fi
+
+export KRB5CCNAME=${TMPDIR}/krb5cc_${UID}_${KRBUSER}_${userpart}
k5start -H 30 -u "$PRINC" $EXTRAOPTS
mh-sysadmin-tools (1.5) unstable; urgency=low
- * with-creds: use /var/tmp for ccaches
+ * with-creds: use /dev/shm for ccaches if exists, fall back to /tmp
+ otherwise. This solves the issue of NFS picking the wrong credentials to
+ identify the user.
+ * with-creds: set -e so failures cause it to stop
-- Michael Howe <michael@michaelhowe.org> Mon, 09 Dec 2013 20:32:42 +0000