Problem accessing samba share / permission denied





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















i have installed samba and want to share a directory to everyone in my home network.
Everything works fine, if i share for example a directory inside my ubuntu user home directory:



home/drwade/temp/samba/anonymous


here i can access the share without any problem.
This is the section of my /etc/samba/smb.conf:



file:



[Anonymous]
path = /home/drwade/temp/samba/anonymous
browsable = yes
writable = yes
read only = no
force user = nobody
public = yes


I have now installed a 3 TB harddrive into my pc and formatted it with ext3 and chowned the whole drive to my ubuntu user.
Then i have added it to the /etc/samba/smb.conf:



[Anonymous2]
path = /media/drwade/DATA/samba/anonymous
browsable = yes
writable = yes
read only = no
force user = nobody
public = yes


When i try to access the Anonymous2 share on my Windows 7 machine, i get an permission denied error.



Could this be an mounting problem? have i forgot to configure something else?










share|improve this question














bumped to the homepage by Community 10 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    i have installed samba and want to share a directory to everyone in my home network.
    Everything works fine, if i share for example a directory inside my ubuntu user home directory:



    home/drwade/temp/samba/anonymous


    here i can access the share without any problem.
    This is the section of my /etc/samba/smb.conf:



    file:



    [Anonymous]
    path = /home/drwade/temp/samba/anonymous
    browsable = yes
    writable = yes
    read only = no
    force user = nobody
    public = yes


    I have now installed a 3 TB harddrive into my pc and formatted it with ext3 and chowned the whole drive to my ubuntu user.
    Then i have added it to the /etc/samba/smb.conf:



    [Anonymous2]
    path = /media/drwade/DATA/samba/anonymous
    browsable = yes
    writable = yes
    read only = no
    force user = nobody
    public = yes


    When i try to access the Anonymous2 share on my Windows 7 machine, i get an permission denied error.



    Could this be an mounting problem? have i forgot to configure something else?










    share|improve this question














    bumped to the homepage by Community 10 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      i have installed samba and want to share a directory to everyone in my home network.
      Everything works fine, if i share for example a directory inside my ubuntu user home directory:



      home/drwade/temp/samba/anonymous


      here i can access the share without any problem.
      This is the section of my /etc/samba/smb.conf:



      file:



      [Anonymous]
      path = /home/drwade/temp/samba/anonymous
      browsable = yes
      writable = yes
      read only = no
      force user = nobody
      public = yes


      I have now installed a 3 TB harddrive into my pc and formatted it with ext3 and chowned the whole drive to my ubuntu user.
      Then i have added it to the /etc/samba/smb.conf:



      [Anonymous2]
      path = /media/drwade/DATA/samba/anonymous
      browsable = yes
      writable = yes
      read only = no
      force user = nobody
      public = yes


      When i try to access the Anonymous2 share on my Windows 7 machine, i get an permission denied error.



      Could this be an mounting problem? have i forgot to configure something else?










      share|improve this question














      i have installed samba and want to share a directory to everyone in my home network.
      Everything works fine, if i share for example a directory inside my ubuntu user home directory:



      home/drwade/temp/samba/anonymous


      here i can access the share without any problem.
      This is the section of my /etc/samba/smb.conf:



      file:



      [Anonymous]
      path = /home/drwade/temp/samba/anonymous
      browsable = yes
      writable = yes
      read only = no
      force user = nobody
      public = yes


      I have now installed a 3 TB harddrive into my pc and formatted it with ext3 and chowned the whole drive to my ubuntu user.
      Then i have added it to the /etc/samba/smb.conf:



      [Anonymous2]
      path = /media/drwade/DATA/samba/anonymous
      browsable = yes
      writable = yes
      read only = no
      force user = nobody
      public = yes


      When i try to access the Anonymous2 share on my Windows 7 machine, i get an permission denied error.



      Could this be an mounting problem? have i forgot to configure something else?







      samba






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 28 '18 at 23:32









      DrWadeDrWade

      112




      112





      bumped to the homepage by Community 10 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 10 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:



          force user = drwade





          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000806%2fproblem-accessing-samba-share-permission-denied%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:



            force user = drwade





            share|improve this answer




























              0














              By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:



              force user = drwade





              share|improve this answer


























                0












                0








                0







                By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:



                force user = drwade





                share|improve this answer













                By design /media/$USER ( /media/drwade in this case ) will allow only one user to get past it and that is drwade. You are forcing the user to be "nobody". nobody != drwade so access is denied. Change your force user in the [Anonymous2] share definition to drwade:



                force user = drwade






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 4 '18 at 20:49









                Morbius1Morbius1

                1,650138




                1,650138






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000806%2fproblem-accessing-samba-share-permission-denied%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    GameSpot

                    日野市

                    Tu-95轟炸機