Allow write access for regular user on CIFS share

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media that has read/write access to this specific folder. I mount the folder with the following /etc/fstab entry:



//disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0


Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.



Output of ls -la on the share shows following:



drwxr-xr-x 2 root root 0 01. Jan 2018 .
drwxr-xr-x 2 root root 0 01. Jan 2018 ..
-rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
-rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
-rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'


How do I configure my laptop to allow my regular user to have read/write access to the share?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media that has read/write access to this specific folder. I mount the folder with the following /etc/fstab entry:



    //disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0


    Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.



    Output of ls -la on the share shows following:



    drwxr-xr-x 2 root root 0 01. Jan 2018 .
    drwxr-xr-x 2 root root 0 01. Jan 2018 ..
    -rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
    -rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
    -rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'


    How do I configure my laptop to allow my regular user to have read/write access to the share?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media that has read/write access to this specific folder. I mount the folder with the following /etc/fstab entry:



      //disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0


      Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.



      Output of ls -la on the share shows following:



      drwxr-xr-x 2 root root 0 01. Jan 2018 .
      drwxr-xr-x 2 root root 0 01. Jan 2018 ..
      -rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
      -rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
      -rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'


      How do I configure my laptop to allow my regular user to have read/write access to the share?










      share|improve this question















      I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media that has read/write access to this specific folder. I mount the folder with the following /etc/fstab entry:



      //disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0


      Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.



      Output of ls -la on the share shows following:



      drwxr-xr-x 2 root root 0 01. Jan 2018 .
      drwxr-xr-x 2 root root 0 01. Jan 2018 ..
      -rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
      -rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
      -rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'


      How do I configure my laptop to allow my regular user to have read/write access to the share?







      linux permissions cifs smb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 30 at 14:08









      sebasth

      6,34421643




      6,34421643










      asked Aug 26 at 18:57









      SeeYouInDisneyland

      33




      33




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.



          You can change this mapping to set your regular user as the owner and group of the share by using uid= and gid= mount options. This should allow write access.






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464954%2fallow-write-access-for-regular-user-on-cifs-share%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.



            You can change this mapping to set your regular user as the owner and group of the share by using uid= and gid= mount options. This should allow write access.






            share|improve this answer


























              up vote
              1
              down vote



              accepted










              Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.



              You can change this mapping to set your regular user as the owner and group of the share by using uid= and gid= mount options. This should allow write access.






              share|improve this answer
























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.



                You can change this mapping to set your regular user as the owner and group of the share by using uid= and gid= mount options. This should allow write access.






                share|improve this answer














                Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.



                You can change this mapping to set your regular user as the owner and group of the share by using uid= and gid= mount options. This should allow write access.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 30 at 14:04

























                answered Aug 26 at 20:24









                sebasth

                6,34421643




                6,34421643



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464954%2fallow-write-access-for-regular-user-on-cifs-share%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?