You are not logged in.

#1 2014-04-04 04:56:30

synthead
Member
Registered: 2006-05-09
Posts: 1,337

[solved] Allow SFTP-jailed user to upload files for httpd to serve?

I'm trying to allow an SFTP-jailed user to upload things to a directory like httpd/ for it to be served via Apache httpd.  What's a good way to do this?

Last edited by synthead (2014-04-04 05:40:22)

Offline

#2 2014-04-04 05:40:10

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Allow SFTP-jailed user to upload files for httpd to serve?

Figured out a pretty great solution: bindfs.  It allows all kinds of very transparent permission manipulation and works perfect without any changes to my httpd.conf!

Offline

#3 2014-04-04 05:53:00

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: [solved] Allow SFTP-jailed user to upload files for httpd to serve?

In case you guys are curious, this is what I used in my /etc/fstab:

/var/sftpjail/foo/httpd /srv/http/bar fuse.bindfs force-user=http,force-group=http,perms=du=rwx:dg=rx:do=:fu=rw:fg=r:fo=,ro 0 0

Last edited by synthead (2014-04-04 05:54:10)

Offline

Board footer

Powered by FluxBB