Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 67434  / 3 Years ago, mon, november 15, 2021, 4:23:44

I did everything according to these instructions on the OwnCloud forum
but I get the error:




Data directory (/mnt/usbdrive/owncloud/) is readable for other users

Please change the permissions to 0770 so that the directory cannot be listed by other users.




I gave the permissions like:



 chmod 0770 /mnt/usbdrive/owncloud/


and I changed my /etc/fstab



I used:



chown -R www-data:www-data /mnt/usbdrive/owncloud/


as well. But I still get that error when going to owncloud



This is what my /etc/fstab looks like:



[screenshot of fstab in terminal



EDIT: This error only comes up when I change the data directory. If I keep it the same, I can acces it normally.


More From » permissions

 Answers
1

With the inputs you provided, you have to change your mount options in /etc/fstab.



quiet,defaults,permissions,locale=en_US.utf8


Don't use the umask option; it seems that the mount.ntfs-3g manpage is false where it claims that mask will apply to newer files. All the ".mask" options apply also to already existing files.



With umask=0 all your files get rwxrwxrwx rights.


[#28289] Wednesday, November 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
confiorc questions
Fri, Jul 23, 21, 18:21, 3 Years ago
Tue, Mar 22, 22, 14:25, 2 Years ago
Thu, Feb 17, 22, 22:43, 2 Years ago
;