[23042] in Source-Commits
/svn/athena r22705 - trunk/debathena/config/shell-config/debian
daemon@ATHENA.MIT.EDU (tabbott@MIT.EDU)
Fri Jan 25 00:16:19 2008
Date: Fri, 25 Jan 2008 00:15:48 -0500 (EST)
From: tabbott@MIT.EDU
Message-Id: <200801250515.AAA07553@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: tabbott
Date: 2008-01-25 00:15:48 -0500 (Fri, 25 Jan 2008)
New Revision: 22705
Modified:
trunk/debathena/config/shell-config/debian/bashrc.debathena
trunk/debathena/config/shell-config/debian/changelog
trunk/debathena/config/shell-config/debian/cshrc.debathena
Log:
Note these changes only affect debathena-standard configurations.
Modified: trunk/debathena/config/shell-config/debian/bashrc.debathena
===================================================================
--- trunk/debathena/config/shell-config/debian/bashrc.debathena 2008-01-17 21:54:21 UTC (rev 22704)
+++ trunk/debathena/config/shell-config/debian/bashrc.debathena 2008-01-25 05:15:48 UTC (rev 22705)
@@ -8,7 +8,10 @@
export ATHENA_SYS=@sys
fi
-renew () { kinit -54 $USER && fsid -a && zctl load /dev/null ; }
+renew () {
+ principal=`klist -5 2>/dev/null | sed -n 's/^Default principal: // p'`
+ kinit -54 "${principal:-${ATHENA_USER:-$USER}}" && aklog && zctl load /dev/null ;
+}
add_flags=
add () { eval "$( /bin/attach -Padd -b $add_flags "$@" )" ; }
Modified: trunk/debathena/config/shell-config/debian/changelog
===================================================================
--- trunk/debathena/config/shell-config/debian/changelog 2008-01-17 21:54:21 UTC (rev 22704)
+++ trunk/debathena/config/shell-config/debian/changelog 2008-01-25 05:15:48 UTC (rev 22705)
@@ -1,3 +1,15 @@
+debathena-shell-config (1.3) unstable; urgency=low
+
+ * Have renew aklog rather than "fsid -a" so that it works even if the
+ user's home directory is not attached.
+ * Have renew kinit for whatever principal one has tickets for, if
+ tickets exist; defaulting to ATHENA_USER if one has no tickets,
+ and defaulting to USER if ATHENA_USER is not set. This should
+ make it easier to deal with usernames not matching the Athena
+ username.
+
+ -- Tim Abbott <tabbott@mit.edu> Thu, 24 Jan 2008 22:44:26 -0500
+
debathena-shell-config (1.2debathena1) unstable; urgency=low
* Eschew /bin/athena paths.
Modified: trunk/debathena/config/shell-config/debian/cshrc.debathena
===================================================================
--- trunk/debathena/config/shell-config/debian/cshrc.debathena 2008-01-17 21:54:21 UTC (rev 22704)
+++ trunk/debathena/config/shell-config/debian/cshrc.debathena 2008-01-25 05:15:48 UTC (rev 22705)
@@ -8,7 +8,7 @@
endif
setenv ATHENA_SYS_COMPAT `/bin/machtype -C`
-alias renew 'kinit -54 $USER && fsid -a && zctl load /dev/null'
+alias renew 'kinit -54 $USER && aklog && zctl load /dev/null'
set add_flags
alias add 'eval `/bin/attach -Padd $add_flags \!:*`'