Disable rm on sftp
Ahmad Zayed
az1fantastic at gmail.com
Thu Oct 25 05:03:24 EST 2012
Hi Ben,
Thanks for reply,
So to make it work I have to recompile open ssh package after changing
sftp.c file and edit do_rm & do_rmdir functions?
Thanks
On Oct 24, 2012 7:56 PM, "Ben Lindstrom" <mouring at eviladmin.org> wrote:
>
> On Oct 24, 2012, at 11:17 AM, Ahmad Zayed <az1fantastic at gmail.com> wrote:
>
> > Dear Damien,
> > Good day
> >
> > Thanks for your reply
> >
> > This is what I found, the modified version of sftp-server is working but
> > the user I tried is configure under chroot environment and I am using the
> > internal-sftp as force command.
> >
> > Today I tried to find out where I can modify this so I can clean out
> do_rm
> > & do_rmdir functions
>
>
> The existing code change will work, but you need to recompile the sshd and
> run
> that instead of the one that comes with the base OS. As you are using
> internal-sftp
> which takes that code and compiles it directly into the sshd.
>
> - Ben
More information about the openssh-unix-dev
mailing list