[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] wiki update: conditionalized startup scripts over s
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] wiki update: conditionalized startup scripts over ssh |
Date: |
Mon, 20 Sep 2004 20:40:00 +0200 |
User-agent: |
Mutt/1.5.6+20040818i |
On Mon, Sep 20, 2004 at 13:17:11 +0100, John Kinson wrote:
> Server .ssh/authorized_keys file contains:
>
> environment="VC=arch-shared" ssh-rsa ... address@hidden
Why don't you simply use a *command* modifier there? It's easier and
more reliable. You can say:
command='/home/me/bin/umasked-sftp' ssh-rsa ...
And then in the /home/me/bin/umasked-sftp do:
#!/bin/sh
umask 002
exec /usr/lib/sftp-server
The key will be useable with sftp, but you don't want to use it with
anything but tla anyway.
In addition, I am not sure how it'l do the quoting, but something like:
command='/bin/sh -c "umask 002; exec /usr/lib/sftp-server"'
might work to.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>
signature.asc
Description: Digital signature