[7705] in testers
Re: My Athena session will not run.
daemon@ATHENA.MIT.EDU (William Cattey)
Wed Sep 17 16:57:48 2008
In-Reply-To: <1221683008.7130.54.camel@error-messages.mit.edu>
Mime-Version: 1.0 (Apple Message framework v753.1)
Content-Type: multipart/mixed; boundary=Apple-Mail-2-712071604
Message-Id: <475C46DD-CE17-44B2-B66B-5AF7CBBE1604@mit.edu>
Cc: testers@mit.edu, athena10@mit.edu
From: William Cattey <wdc@MIT.EDU>
Date: Wed, 17 Sep 2008 16:55:23 -0400
To: Greg Hudson <ghudson@mit.edu>
--Apple-Mail-2-712071604
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
I didn't see any obvious source of bourne shell code.
One odd thing I noticed. Apparently some time in the distant past I
brought one of the system init files into my home dir:
I have a .cshrc file that is a 1989 vintage Athena .cshrc file.
(I tried to attach it from AFS, but looking for a file that begins
with "." in the attach command of Apple Mail panic'd my Mac.) I've
renamed it and attached it. It's different, but harmless to my eye.
(/usr/athena/lib/init does exist and it's contents are the same as /
usr/lib/init/)
However, I think I'm on the trail of something interesting. I *DO*
have a .cshrc.mine that does lots of stuff. I think it blew out,
because I just did "alias" and none of the aliases I've asked for
were set. That .cshrc.mine is also attached.
To try and further clarify: I did echo $shell in the Athena Ubuntu
window I've got open, and it says I'm running tcsh. But when I issue
the command "alias", none of the aliases I set in .cshrc.mine came
through.
But I don't know if any of that matters.
--Apple-Mail-2-712071604
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0666;
name=cshrc.old
Content-Disposition: attachment;
filename=cshrc.old
# Prototype user .cshrc file
# $Author: probe $
# $Source: /paris/source/4.3/prototype/RCS/.cshrc,v $
# $Header: /paris/source/4.3/prototype/RCS/.cshrc,v 1.12 89/08/09 18:44:11 probe Exp $
# This file sources a system-wide cshrc file, which:
# - sets up standard environment variables
# - sources user file ~/.environment, if it exists
# - sets standard path, OR sources user file ~/.path, if it exists
# - sets up standard cshell variables, aliases, etc.
# - source user file ~/.cshrc.mine, if it exists
set initdir=/usr/athena/lib/init
if (-r $initdir/cshrc) then
source $initdir/cshrc
else
if (-r /usr/prototype_user/.cshrc) then
echo -n "Warning: "
echo "This workstation has not been upgraded to Release 6.3."
echo "Using old initialization files."
source /usr/prototype_user/.cshrc
else
echo "Warning: System-wide initialization files not found."
echo "C Shell initialization has not been performed."
# set some basic defaults if failed initialization
stty dec
umask 077
set path=( . ~/${hosttype}bin /srvd/patch /usr/athena \
/bin/athena /usr/bin/X /usr/new /usr/new/mh/bin \
/usr/ucb /bin /usr/bin /usr/ibm )
endif
endif
# If you want to ADJUST the cshell initialization sequence, create any of
# the following files (as appropriate) in your home directory, with commands
# to achieve the effect listed:
#
# .environment - setup session environment (set environmental variables,
# attach lockers, etc.)
# .path - set default search path (you can refer to shell
# variable $athena_path, which lists athena default path,
# when you set path, e.g., "set path=(. $athena_path)")
# .cshrc.mine - setup cshell environment (set shell variables, aliases,
# unset system defaults, etc.)
# If you want to CHANGE the cshell initialization sequence, revise this .cshrc
# file (the one you're reading now). You may want to copy the contents of
# the system-wide cshrc file as a starting point.
#
# WARNING: If you revise this .cshrc file, you will not automatically
# get any changes that Project Athena may make to the system-wide file at
# a later date. Be sure you know what you are doing.
--Apple-Mail-2-712071604
Content-Transfer-Encoding: quoted-printable
Content-Type: application/octet-stream;
x-unix-mode=0666;
name=cshrc.mine
Content-Disposition: attachment;
filename=cshrc.mine
unset=20ignoreeof=0A#stty=20erase=20=08=0Aunset=20noclobber=0A#unlimit=20=
coredumpsize=0Aif=20($?prompt)=20then=09=0A=09unset=20autologout=0A=09=
set=20history=3D100=0A=09set=20savehist=3D50=0A=09set=20=
prompt=3D"`hostname=20|=20sed=20s/mit-//`%=20"=0Aendif=0Aalias=20pedit=20=
'if=20(`where=20pathedit=20|=20grep=20-vc=20"is=20aliased=20to"`)=20\\=0A=
=09set=20path=3D`\pathedit=20\!*`'=0Aalias=20l=20ls=20-ls=0Aalias=20f=20=
finger=0Aalias=20mooseages=20'sleep=201;=20messages'=0Aalias=20t_applix=20=
'attach=20applix_v4.3;=20/mit/applix_v4.3/arch/share/bin/applix=20&'=0A=
alias=20sizer=20sh=20/mit/andrew/decmips/etc/mips_gsize.sh=0Aalias=20=
calendar=20/mit/calendar/${hosttype}bin/xcal=0Aalias=20=20=20atw=20=20=20=
=20=20'set=20atwinfo=3D`hesinfo=20\!$=20filsys`;=20\\=0A=09=09=20set=20=
writdir=3D`echo=20$atwinfo[2]|sed=20s:/afs/:/afs/.:`;=20\\=0A=09=09=20=
attach=20-t=20$atwinfo[1]=20-m=20$atwinfo[4]=20-e=20$writdir'=0Aalias=20=
www=20netscape-4.61=0Aalias=20stk=20=20'setenv=20NTK=20$KRBTKFILE;=20=
setenv=20N5TK=20$KRB5CCNAME'=0Aalias=20rtk=20'setenv=20KRBTKFILE=20$NTK;=20=
setenv=20KRB5CCNAME=20$N5TK'=0Aalias=20ntk=20'setenv=20KRBTKFILE=20=
/tmp/new_tkt;=20setenv=20KRB5CCNAME=20/tmp/new5_tkt'=0Aalias=20=
fs-recurse=20'find=20.=20-noleaf=20-type=20d=20-exec=20fs=20sa=20{}=20=
\!*=20";"'=0A=0A=
--Apple-Mail-2-712071604
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
On Sep 17, 2008, at 4:23 PM, Greg Hudson wrote:
> On Tue, 2008-09-16 at 18:01 -0400, William Cattey wrote:
>> set: Variable name must begin with a letter.
>
> This sounds like some Bourne shell code got executed under tcsh.
>
> You can look in /usr/lib/init/xsession.tcsh to see where execution
> under
> tcsh begins for tcsh users logging in on Athena 10. If you don't have
> a .startup.X, I'm not sure where any Bourne shell code would be
> creeping
> in.
>
>
--Apple-Mail-2-712071604--