Re: the tcsh login-shell problem -- ideas?

Will Partain <[email protected]> Tue, 28 May 2002 14:21:16 +0100
Newsgroups gmane.comp.sysutils.ark.devel
Message-ID <[email protected]>
> I was playing around with this and found if you remove the "exec" it 
> seems to work:
> 
> (echo "/bin/sh"; echo "groups") | ssh frodo newgrp users
> 
> ...works fine. Weird.

Making this change in the ARK code gives me something better
-- i.e. some sign that it runs my code on the far end... --
but it insisted on running it in a csh, no matter what I did
(below).

I am seriously tempted to do 'ssh frodo sudo ...' and
setgid/setuid to get what I want.  newgrp is a nightmare.

Any further ideas?

Will

>> host: hagrid
user_ok=1,group_ok=0; invoker: /usr/local/bin/ssh hagrid /usr/bin/newgrp vladmin
interpreter: /bin/sh
TERM: Undefined variable.
DISPLAY=localhost:10.0: Command not found.
export: Command not found.
ARK_PROFILE=/home/partain/.ark_profile: Command not found.
export: Command not found.
VERBOSE=-v: Command not found.
PRETEND=: Command not found.
KEEP_GOING=: Command not found.
HARD_UNDO=: Command not found.
PATH=/usr/local/bin:/usr/local/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/our/bin: Command not found.
export: Command not found.
PKG_BUILD_DIR=/d/ark-builds/ghostscript--6.52: Command not found.
PKG_DEPLOY_DIRS=/our/.-ark-deploy/ghostscript--6.52: Command not found.
set: Variable name must begin with a letter.