Trouble Mounting cifs share
hi, Guys
New to the forum
Need some help please.
Trying to mount a cifs share (NAS-192.168.0.8) on a Centos 6.7 server (192.168.0.7) which would allow the Owncloud 8 service running on the Centos server to write files directly to my NAS share. Problem is that when after i installed Owncloud, the last part of the webpage based setup asks for the location of the data folder, which is the mount point as indicated in the /etc/fstab, i get an error message:
Error
Can't create or write into the data directory /var/www/owncloud/data
now i had a similar permission issue with Transmission 2.84 running on the same server. The transmission user could not write to the specified cifs share and I got around this by running the transmissiond service as root (I know.... not ideal security etc. but i want to fix this). Below is a my current /etc/fstab
# Transmission Data Folder
\\192.168.0.8\Qdownload /mnt/qdownload cifs credentials=/etc/.smbpass,uid=0,gid=0,_netdev 0 0
# Owncloud Data Folder
\\192.168.0.8\Qdownload\Owncloud\data /var/www/owncloud/data cifs credentials=etc/.smbpass,user,uid=498,rw,suid,,file_mode=0777,dir_mode=0777,noperm 0 0
the user specified in /etc/.smbpass admin has full permission on the NAS
.smbpass looks like this:
username=admin
password=xxxxxxx
# folder on NAS
drwxrwxrwx 3 admin administ 4096 Jan 24 00:41 Owncloud/
drwxrwxrwx 2 admin administ 4096 Jan 24 01:37 data/
I would assume that both issues are related to permission on the share. The (ordinary) users on my Centos server have not got permission to write the cifs share.
Am i safe in assuming the nginx service on Centos is trying to write to the share?
#id nginx
uid=498(nginx) gid=498(nginx) groups=498(nginx)
What option/s do I need to set in the /etc/fstab file on my Centos server?
Any help is appreciated.
|