Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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:
# 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?
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.