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)
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)