On Wed, Dec 21, 2005 at 09:35:52AM -0500, m l wrote:
> I've install OpenSSH_4.2p1 with RSSH on Solaris 10. It only accept "sftp" . 
> I block SSh and the others.
> But the user still able to do commands like "chmod" "put" ,"get" 
> etc......under sftp.
> Is there any way, when the user is in sftp prompt, to limit him to only use 
> for example "PUT" command ?

No.  The best you can do would be something like to use scp with
chroot jails.  In such a case, you could periodically run a script to
remove read permissions from all the files, making it impossible for
the user to download.

Your only other alternative would be to hack the sftp program to only
allow the PUT command.  Maybe someone has done that already... but I
haven't heard about it.

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

Attachment: pgpQECZyzASyF.pgp
Description: PGP signature

Reply via email to