Granting all users access to mounted CIFS shares

Sayantan Das sayantan13 at gmail.com
Thu Dec 26 04:49:51 UTC 2013


try this
//192.168.42.2/Data/ /media/Data   cifs
 user=duckies%swordfish,file_mode=0777,dir_mode=0777     0 0


Regards,

*Sayantan Das*

----------------------------------
Use Linux. Be free !
http://www.tuxtrix.com
 <http://easylinuxos.sf.net/>


On 25 December 2013 22:54, Jacob Mansfield <cyberjacob at gmail.com> wrote:

> 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
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20131226/c21c3c15/attachment.html>


More information about the ubuntu-users mailing list