Granting all users access to mounted CIFS shares
Jacob Mansfield
cyberjacob at gmail.com
Wed Dec 25 17:24:24 UTC 2013
Hi All,
I'm trying to set up a debian server that will run several network-based services. These services need access to an external network drive to store their data. For security reasons, I have set up each service to run under it's own user. To allow them all to access the network share, I created a new group, driveaccess, with gid 1003
I then set up the network share by adding the following to /ets/fstab
//192.168.42.2/Data/ /media/Data cifs guest,rw,mand,gid=1003,forcegid,user=duckies%swordfish 0 0
After mounting the drive, the service accounts see the premissions as
-rwxr-xr-x 1 root driveaccess 1544704 Jun 1 2013 AppData1.dat
And the processes can read the data with no problems, but any attempt to write to the drive fails
touch: cannot touch `test.txt': Permission denied
What do I need to add to the fstab to let everything in the driveaccess group write to the share?
Kind Regards,
Jacob Mansfield
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20131225/9ee4c8a2/attachment.html>
More information about the ubuntu-users
mailing list