LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-25-2016, 02:09 AM   #1
leonsmit
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-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.
 
Old 01-26-2016, 12:03 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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.

Regards...
 
1 members found this post helpful.
Old 01-29-2016, 10:09 PM   #3
leonsmit
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.

Leon
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 AM.

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