Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 3661  / 2 Years ago, sun, march 20, 2022, 4:58:23

I have just installed ownCloud. I chose the data directory (default: /var/www/cloud/data/) to be on a network share on my windows server.



This share is located at



/home/christophe/SeagateDrive/OwncloudData/


I mounted this share by adding this line to fstab:



//192.168.1.130/Seagate /home/christophe/SeagateDrive cifs user=administrator,password=pwd 0 0


But now I get an error from ownCloud saying that the user does not have write permissions to this directory so I did the following:



sudo chown -R www-data:www-data /home/christophe/SeagateDrive/OwncloudData


But this doesn't fix the problem. Everytime I navigate to the directory and do



ls -ld


the only user showing up is root.



Is there a way to fix this?


More From » permissions

 Answers
7

I have solved this by now.



The solution was to edit the fstab file.



In there I had to give the extra parameters:



gid=www-data
file_mode=0770
dir_mode=0770


This gave the group www-data write permissions.


[#29828] Monday, March 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
rmiend questions
Tue, Jan 18, 22, 23:52, 2 Years ago
Sat, Sep 17, 22, 15:44, 2 Years ago
;