[76] in athena10
Re: /svn/athena r22705 - trunk/debathena/config/shell-config/debian
daemon@ATHENA.MIT.EDU (Tim Abbott)
Mon Feb 4 13:23:49 2008
Date: Mon, 4 Feb 2008 13:22:52 -0500 (EST)
From: Tim Abbott <tabbott@MIT.EDU>
To: Jonathon Weiss <jweiss@mit.edu>
cc: athena10@mit.edu
In-Reply-To: <200802041800.m14I0oZk002044@vorpal-blade.mit.edu>
Message-ID: <Pine.LNX.4.64L.0802041315540.24893@phoenix.csail.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Right -- I should have been more clear in my commit message. This shell
configuration is only intended to be used on machines that are using local
home directories (the debathena-standard configuration). It is
effectively overridden by the debathena-dotfiles package, which has our
version of the standard Athena dotfiles, if debathena-login (i.e. AFS home
directory configuration) is installed.
-Tim Abbott
On Mon, 4 Feb 2008, Jonathon Weiss wrote:
>
> 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 \!:*`'
>>
>
>
>