[75] in athena10

home help back first fref pref prev next nref lref last post

Re: /svn/athena r22705 - trunk/debathena/config/shell-config/debian

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Mon Feb 4 13:01:33 2008

Message-Id: <200802041800.m14I0oZk002044@vorpal-blade.mit.edu>
From: Jonathon Weiss <jweiss@MIT.EDU>
To: tabbott@MIT.EDU
cc: athena10@MIT.EDU
In-reply-to: Your message of "Fri, 25 Jan 2008 00:15:48 EST."
             <200801250515.AAA07553@drugstore.mit.edu> 
Date: Mon, 04 Feb 2008 13:00:50 -0500


This change will break for anyone who has a homedir somewhere other
than the athena cell, and to a lesser extent anyone who has write
access to and attaches lockers not in the athena cell.

	Jonathon



> 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 \!:*`'
> 



home help back first fref pref prev next nref lref last post