Re: Problems with jailroot sftp and write permissions
/var would need to be "world readable" i.e. readable by any user. Permissions from 'ls -lh' would be rwxr-xr-x
and /var/www should be rwxr-x--- or rwxr-xr-x
the user that owns /var/www should be www-data
and the group that owns it should be sftponly
that way 'ls -lhd /var/www' will output something like
drwxr-xr-x 2 www-data sftponly 4.0K 2011-02-03 15:49 /var/www
the important bit is the first 3 columns:
drwxr-xr-x www-data sftponly
when members of the sftponly group log in, they will be able to read the contents of /var/www
but the web server which runs as user www-data will be able to write to it.
>> Press any key to continue, or any other key to cancel.