Article 5K521 How to correctly SSHFS mount a www-data directory?

How to correctly SSHFS mount a www-data directory?

by
g4njawizard
from LinuxQuestions.org on (#5K521)
Hello Friends,

I currently try to mount a data directory from my Nextcloud Server to my local machine.
With Code:sshfs user@ncloud:/mnt/data/user/files nc-share I can mount the directory, but I get a permission denied when I try to copy files.
I thought that adding Code:usermod -aG www-data userwould do the job, but I was wrong. I cant copy files in there without sudo permissions
Any Idea whats wrong?

Current permission of the directory
Code:drwxr-xr-x 6 www-data www-data 4.0K Jun 16 15:29 filesAnd my users groups:
Code:uid=1001(user) gid=1001(user) groups=1001(user),27(sudo),33(www-data)latest?d=yIl2AUoC8zA latest?i=gC84WR02MRo:NREnKA4D7Iw:F7zBnMy latest?i=gC84WR02MRo:NREnKA4D7Iw:V_sGLiP latest?d=qj6IDK7rITs latest?i=gC84WR02MRo:NREnKA4D7Iw:gIN9vFwgC84WR02MRo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments