RE: Restricting sftp commands



Probably the most robust thing would be to use file-system ACLs to
restrict users to the desired actions.

They could always try a "get" command, but it would fail if they tried
to download a file to which they lacked read permissions.

That would also have the advantage of working regardless of what means
they used to access the server - sftp, ssh, console, etc.

Regards
Mark

-----Original Message-----
From: m l
Sent: December 21, 2005 07:36
To: secureshell@xxxxxxxxxxxxxxxxx
Subject: Restricting sftp commands

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 ?

Martin

"Do, Or do not. There is no try." -YODA-



This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.



Relevant Pages

  • Re: Restricting sftp commands
    ... > I block SSh and the others. ... > Is there any way, when the user is in sftp prompt, to limit him to only use ... > for example "PUT" command? ...
    (SSH)
  • RE: sftp-server on solaris8
    ... command was failing to execute the command "ksh -c ... It seems to me that SSH and SFTP are having trouble talking remotely... ... anti-virus service working around the clock, around the globe, visit: ...
    (SSH)
  • Re: [opensuse] SFTP performance degradation under Dolphin and Konqueror
    ... Dolpin and konqueror use kio_sftp to use the sftp protocol. ... the libssh library. ... In KDE < 4.3 times, kio_sftp called the sftp command line binary. ...
    (SuSE)
  • Re: SFTP GET COMMAND QUESTION
    ... Subject: SFTP GET COMMAND QUESTION ... Look at z/os client parameters TRAILINGBLANKS, TRUNCATE, and WRAPRECORD. ... the end of line character. ...
    (bit.listserv.ibm-main)
  • Re: [SLE] Getting Dreamweaver to connect to SFTP via vsftpd
    ... In using regular ftp command I can't connect to ... >> the ftp server but using the sftp command I can connect. ... > sftp has nothing to do with vsftpd. ...
    (SuSE)