i have a nextcloud installation on a ubuntu 18.04 where i have mounted a sftp share through the interface but when i create the files on share through nextcloud the rights are wrong.

Is there a way you can force rights on a sftp share?

Here's how I want the rights to my sftp share when I create files through nextcloud:

-rw-r--r-- 1 www-data www-data

But now they look like this:

-rw-rw-r-- 1 root users 

How to i mount the share in fstab:

username@ip:/srv/dev-disk-by-label-Share/Myfiles-Share /media/odroidxu4-nasshare fuse.sshfs x-systemd.automount,_netdev,user,transform_symlinks,ident$,identityfile=/home/rene/.ssh/id_rsa,allow_other,defaults,default_permissions 0 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.