On 4/19/06, Joachim Schipper <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 19, 2006 at 05:36:37PM +0200, Pete Vickers wrote:
> > if you can read /var/log/authlog, you are in wheel (unless you've
> > changed perms on it). So just use scp to copy ksh to /usr/local/bin/
> > tcsh...
>
> But you don't have write permission on that directory, at least, not on
> my machine.
>
>                Joachim

Maybe I'm missing something, no access to a unix right now, but how
about the ssh option for a command?, the ssh manpage says

     If command is specified, it is executed on the remote host instead of a
     login shell.

and

     When the user's identity has been accepted by the server, the server ei-
     ther executes the given command, or logs into the machine and gives the
     user a normal shell on the remote machine.

maybe with an .authorized_keys file, you could invoke /bin/sh directly.

ssh [EMAIL PROTECTED] '/bin/sh'

auth may still deny it, the login shell not-existing, but its worth a shot...

Reply via email to