samba user write error

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











up vote
1
down vote

favorite












I have an issue when I want to write to a raspberry smb share from my PC (linux mint).



users on the raspberry:
default user "pi" and new user "TF"



"pi" user has write permission, but "TF" does not seem to have it when I mount the shares.



TF was created and added as samba user according to this:



sudo adduser TF
sudo adduser TF sudo
sudo adduser TF users #not sure if relevant
sudo smbpasswd -a TF


...password also provided, credentials to mount in fstab work well



smb.conf looks like this:



[NASHDD1]
comment = some comment

path = /mnt/NASHDD1
browseable = yes
read only = no
public = no
create mask=0777
directory mask=0777


ownership of the folders looks like this:



$ ls -l /mnt/
total 4
drwxrwxrwx 9 TF root 4096 Oct 13 17:25 NASHDD1


$ ls -l /mnt/NASHDD1/
total 32
drwxrwxrwx 11 TF root 4096 Sep 10 12:22 asusware.arm
drwxrwxrwx 9 TF root 4096 Sep 13 22:35 Folder1
drwxrwxrwx 2 TF root 16384 Jun 9 07:38 lost+found
drwxrwxrwx 2 TF pi 4096 Oct 13 17:25 Music
drwxrwxrwx 10 TF root 4096 Oct 21 21:54 Folder2


What am I missing?







share|improve this question




















  • Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
    – Michael D.
    Oct 21 '17 at 20:33










  • I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
    – itarill
    Oct 21 '17 at 21:36











  • can you show how your share is mounted in /etc/fstab?
    – Michael D.
    Oct 21 '17 at 21:54











  • That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
    – itarill
    Oct 21 '17 at 21:57







  • 1




    Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
    – Michael D.
    Oct 21 '17 at 22:50














up vote
1
down vote

favorite












I have an issue when I want to write to a raspberry smb share from my PC (linux mint).



users on the raspberry:
default user "pi" and new user "TF"



"pi" user has write permission, but "TF" does not seem to have it when I mount the shares.



TF was created and added as samba user according to this:



sudo adduser TF
sudo adduser TF sudo
sudo adduser TF users #not sure if relevant
sudo smbpasswd -a TF


...password also provided, credentials to mount in fstab work well



smb.conf looks like this:



[NASHDD1]
comment = some comment

path = /mnt/NASHDD1
browseable = yes
read only = no
public = no
create mask=0777
directory mask=0777


ownership of the folders looks like this:



$ ls -l /mnt/
total 4
drwxrwxrwx 9 TF root 4096 Oct 13 17:25 NASHDD1


$ ls -l /mnt/NASHDD1/
total 32
drwxrwxrwx 11 TF root 4096 Sep 10 12:22 asusware.arm
drwxrwxrwx 9 TF root 4096 Sep 13 22:35 Folder1
drwxrwxrwx 2 TF root 16384 Jun 9 07:38 lost+found
drwxrwxrwx 2 TF pi 4096 Oct 13 17:25 Music
drwxrwxrwx 10 TF root 4096 Oct 21 21:54 Folder2


What am I missing?







share|improve this question




















  • Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
    – Michael D.
    Oct 21 '17 at 20:33










  • I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
    – itarill
    Oct 21 '17 at 21:36











  • can you show how your share is mounted in /etc/fstab?
    – Michael D.
    Oct 21 '17 at 21:54











  • That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
    – itarill
    Oct 21 '17 at 21:57







  • 1




    Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
    – Michael D.
    Oct 21 '17 at 22:50












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have an issue when I want to write to a raspberry smb share from my PC (linux mint).



users on the raspberry:
default user "pi" and new user "TF"



"pi" user has write permission, but "TF" does not seem to have it when I mount the shares.



TF was created and added as samba user according to this:



sudo adduser TF
sudo adduser TF sudo
sudo adduser TF users #not sure if relevant
sudo smbpasswd -a TF


...password also provided, credentials to mount in fstab work well



smb.conf looks like this:



[NASHDD1]
comment = some comment

path = /mnt/NASHDD1
browseable = yes
read only = no
public = no
create mask=0777
directory mask=0777


ownership of the folders looks like this:



$ ls -l /mnt/
total 4
drwxrwxrwx 9 TF root 4096 Oct 13 17:25 NASHDD1


$ ls -l /mnt/NASHDD1/
total 32
drwxrwxrwx 11 TF root 4096 Sep 10 12:22 asusware.arm
drwxrwxrwx 9 TF root 4096 Sep 13 22:35 Folder1
drwxrwxrwx 2 TF root 16384 Jun 9 07:38 lost+found
drwxrwxrwx 2 TF pi 4096 Oct 13 17:25 Music
drwxrwxrwx 10 TF root 4096 Oct 21 21:54 Folder2


What am I missing?







share|improve this question












I have an issue when I want to write to a raspberry smb share from my PC (linux mint).



users on the raspberry:
default user "pi" and new user "TF"



"pi" user has write permission, but "TF" does not seem to have it when I mount the shares.



TF was created and added as samba user according to this:



sudo adduser TF
sudo adduser TF sudo
sudo adduser TF users #not sure if relevant
sudo smbpasswd -a TF


...password also provided, credentials to mount in fstab work well



smb.conf looks like this:



[NASHDD1]
comment = some comment

path = /mnt/NASHDD1
browseable = yes
read only = no
public = no
create mask=0777
directory mask=0777


ownership of the folders looks like this:



$ ls -l /mnt/
total 4
drwxrwxrwx 9 TF root 4096 Oct 13 17:25 NASHDD1


$ ls -l /mnt/NASHDD1/
total 32
drwxrwxrwx 11 TF root 4096 Sep 10 12:22 asusware.arm
drwxrwxrwx 9 TF root 4096 Sep 13 22:35 Folder1
drwxrwxrwx 2 TF root 16384 Jun 9 07:38 lost+found
drwxrwxrwx 2 TF pi 4096 Oct 13 17:25 Music
drwxrwxrwx 10 TF root 4096 Oct 21 21:54 Folder2


What am I missing?









share|improve this question











share|improve this question




share|improve this question










asked Oct 21 '17 at 20:08









itarill

136




136











  • Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
    – Michael D.
    Oct 21 '17 at 20:33










  • I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
    – itarill
    Oct 21 '17 at 21:36











  • can you show how your share is mounted in /etc/fstab?
    – Michael D.
    Oct 21 '17 at 21:54











  • That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
    – itarill
    Oct 21 '17 at 21:57







  • 1




    Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
    – Michael D.
    Oct 21 '17 at 22:50
















  • Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
    – Michael D.
    Oct 21 '17 at 20:33










  • I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
    – itarill
    Oct 21 '17 at 21:36











  • can you show how your share is mounted in /etc/fstab?
    – Michael D.
    Oct 21 '17 at 21:54











  • That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
    – itarill
    Oct 21 '17 at 21:57







  • 1




    Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
    – Michael D.
    Oct 21 '17 at 22:50















Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
– Michael D.
Oct 21 '17 at 20:33




Is your mint pc's directory - in which you mount your pi share properly setup (ownership/flags)?
– Michael D.
Oct 21 '17 at 20:33












I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
– itarill
Oct 21 '17 at 21:36





I am mounting it to /mnt/nashdd1; $ ls -l /mnt shows drwxr-xr-x 2 mymintuser root 4096 okt 21 23:32 nashdd1
– itarill
Oct 21 '17 at 21:36













can you show how your share is mounted in /etc/fstab?
– Michael D.
Oct 21 '17 at 21:54





can you show how your share is mounted in /etc/fstab?
– Michael D.
Oct 21 '17 at 21:54













That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
– itarill
Oct 21 '17 at 21:57





That would be //raspberryPi2/NASHDD1/ /mnt/nashdd1/ cifs credentials=/home/mymintuser/.smbcredentials 0 0 on the client. Interestingly, when I try to create a file or copy one, it will create an empty one and issue an error message after...
– itarill
Oct 21 '17 at 21:57





1




1




Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
– Michael D.
Oct 21 '17 at 22:50




Check some examples for Samba shares - there're more options, maybe you're missing the valid users = parameter or so. You could add guest ok = yes to your smb.conf share - just to see if it's a samba setting/option you're missing - good luck
– Michael D.
Oct 21 '17 at 22:50










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Listing valid users in a comma separated list is advisable to enabling writeable guest access with 777 permissions. You may also need wide links enabled depending on how you have the mount point setup.



So, I would first try adding this to your samba share definition:



valid users = pi, TF
create mask = 0600
directory mask = 0700


If that still doesn't work add wide links:



wide links = yes


Hopefully this helps. Good luck!






share|improve this answer



























    up vote
    0
    down vote



    accepted










    The solution lies in this post (not enough reputation to upvote there yet).



    Mounting cifs via fstab mounted the partition as sudo, therefore I did not have W access. Changing the end of the command to
    ,uid=<user>,gid=<group> 0 0
    solved my mysterious problem!






    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%2f399609%2fsamba-user-write-error%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      Listing valid users in a comma separated list is advisable to enabling writeable guest access with 777 permissions. You may also need wide links enabled depending on how you have the mount point setup.



      So, I would first try adding this to your samba share definition:



      valid users = pi, TF
      create mask = 0600
      directory mask = 0700


      If that still doesn't work add wide links:



      wide links = yes


      Hopefully this helps. Good luck!






      share|improve this answer
























        up vote
        0
        down vote













        Listing valid users in a comma separated list is advisable to enabling writeable guest access with 777 permissions. You may also need wide links enabled depending on how you have the mount point setup.



        So, I would first try adding this to your samba share definition:



        valid users = pi, TF
        create mask = 0600
        directory mask = 0700


        If that still doesn't work add wide links:



        wide links = yes


        Hopefully this helps. Good luck!






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          Listing valid users in a comma separated list is advisable to enabling writeable guest access with 777 permissions. You may also need wide links enabled depending on how you have the mount point setup.



          So, I would first try adding this to your samba share definition:



          valid users = pi, TF
          create mask = 0600
          directory mask = 0700


          If that still doesn't work add wide links:



          wide links = yes


          Hopefully this helps. Good luck!






          share|improve this answer












          Listing valid users in a comma separated list is advisable to enabling writeable guest access with 777 permissions. You may also need wide links enabled depending on how you have the mount point setup.



          So, I would first try adding this to your samba share definition:



          valid users = pi, TF
          create mask = 0600
          directory mask = 0700


          If that still doesn't work add wide links:



          wide links = yes


          Hopefully this helps. Good luck!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 22 '17 at 23:09









          RubberStamp

          1,4751216




          1,4751216






















              up vote
              0
              down vote



              accepted










              The solution lies in this post (not enough reputation to upvote there yet).



              Mounting cifs via fstab mounted the partition as sudo, therefore I did not have W access. Changing the end of the command to
              ,uid=<user>,gid=<group> 0 0
              solved my mysterious problem!






              share|improve this answer
























                up vote
                0
                down vote



                accepted










                The solution lies in this post (not enough reputation to upvote there yet).



                Mounting cifs via fstab mounted the partition as sudo, therefore I did not have W access. Changing the end of the command to
                ,uid=<user>,gid=<group> 0 0
                solved my mysterious problem!






                share|improve this answer






















                  up vote
                  0
                  down vote



                  accepted







                  up vote
                  0
                  down vote



                  accepted






                  The solution lies in this post (not enough reputation to upvote there yet).



                  Mounting cifs via fstab mounted the partition as sudo, therefore I did not have W access. Changing the end of the command to
                  ,uid=<user>,gid=<group> 0 0
                  solved my mysterious problem!






                  share|improve this answer












                  The solution lies in this post (not enough reputation to upvote there yet).



                  Mounting cifs via fstab mounted the partition as sudo, therefore I did not have W access. Changing the end of the command to
                  ,uid=<user>,gid=<group> 0 0
                  solved my mysterious problem!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 10 at 21:44









                  itarill

                  136




                  136



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399609%2fsamba-user-write-error%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?