Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-25-2016, 02:09 AM   #1
LQ Newbie
Registered: Jan 2016
Location: Perth
Distribution: Linux Mint 17 Centos 6
Posts: 3

Rep: Reputation: Disabled
Trouble Mounting cifs share

hi, Guys
New to the forum

Need some help please.

Trying to mount a cifs share (NAS- on a Centos 6.7 server ( 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:

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
\\\Qdownload /mnt/qdownload cifs credentials=/etc/.smbpass,uid=0,gid=0,_netdev 0 0
# Owncloud Data Folder
\\\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:


# 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.
Old 01-26-2016, 12:03 AM   #2
LQ Veteran
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Hello and welcome to the forum

Just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future.

1 members found this post helpful.
Old 01-29-2016, 10:09 PM   #3
LQ Newbie
Registered: Jan 2016
Location: Perth
Distribution: Linux Mint 17 Centos 6
Posts: 3

Original Poster
Rep: Reputation: Disabled
Red face

done - thanks

Any idea on a resolution to my problem. Had no replies.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues mounting a remote Windows share using CIFS over a Cisco VPN funcrusher Linux - Networking 2 06-07-2013 07:37 PM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM
Mounting CIFS share causes the mount point to be destroyed kenneho Linux - Server 13 06-19-2009 01:39 AM
Mount.cifs Mounting a subdirectory of a windows share MonctonJohn Linux - Networking 4 09-28-2007 05:15 AM
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file O(V)eGA_l2el) Linux - Networking 2 12-05-2006 11:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration