|
From: Amir W. <web...@co...> - 2013-06-24 08:54:52
|
On Tue, Feb 5, 2013 at 6:58 AM, Miklos Szeredi <mi...@sz...> wrote: > On Sun, Nov 25, 2012 at 9:09 AM, Amir Wald <web...@co...> wrote: > > Try changing the Subsystem line in /etc/ssh/sshd_config to something > like "Subsystem sftp > /path/to/sftp-server -u0" on the server. The -u option for > sftp-server sets the umask. Thank you very much Miklos for your response. Adding -u0 as you suggested, then restarting sshd on the server and remounting sshfs on the client solved my problem easily. An inferior workaround I've come up with is to call chmod() after creating files and directories. This is more problematic complex as if the URL requested was http://example.com/some/page/with/some/data the static cache file will be called /cache/some/page/with/some/data.html and I'll have to chmod /cache/some /cache/some/page and /cache/some/page/with and /cache/some/page/with/some and /cache/some/page/with/some/data.html There's more reading material here http://andre.frimberger.de/index.php/linux/sshfs-fix-for-wrong-file-permissions-on-server/ I didn't try your advice in regards to setting the owner as it's not really needed for my situation. Thank you for your time and assistance. |