Cannot access shared folder (samba) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!Samba log in Guest always askedSamba Permissions - I'm going to throw it!Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNSamba Ignoring POSIX ACLsWhy is samba unable to access a folder once something is mounted to it?Samba Displaying Folders as FilesAD Authentication with SAMBA, Winbind and SSSSamba, hosts allow = .example.comSAMBA, CIFS, message signing, confusion

What was the first language to use conditional keywords?

What is this clumpy 20-30cm high yellow-flowered plant?

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

Generate an RGB colour grid

Why do we bend a book to keep it straight?

What would you call this weird metallic apparatus that allows you to lift people?

Effects on objects due to a brief relocation of massive amounts of mass

Time to Settle Down!

How to write the following sign?

Project Euler #1 in C++

What is a fractional matching?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

Are all finite dimensional hilbert spaces isomorphic to spaces with Euclidean norms?

How fail-safe is nr as stop bytes?

Why aren't air breathing engines used as small first stages?

How does the math work when buying airline miles?

How can I reduce the gap between left and right of cdot with a macro?

Is there a kind of relay only consumes power when switching?

How to react to hostile behavior from a senior developer?

Most bit efficient text communication method?

Do any jurisdictions seriously consider reclassifying social media websites as publishers?

AppleTVs create a chatty alternate WiFi network

Is there any word for a place full of confusion?

What's the meaning of "fortified infraction restraint"?



Cannot access shared folder (samba)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Samba log in Guest always askedSamba Permissions - I'm going to throw it!Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNSamba Ignoring POSIX ACLsWhy is samba unable to access a folder once something is mounted to it?Samba Displaying Folders as FilesAD Authentication with SAMBA, Winbind and SSSSamba, hosts allow = .example.comSAMBA, CIFS, message signing, confusion



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:



[sharing]
path = /home/share
guest ok = yes
browseable = yes
read only = no


Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.



I then restarted Linux1, disabled my firewall, and restarted the smb service.



From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.



I don't understand why this isn't working now.










share|improve this question




























    0















    I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:



    [sharing]
    path = /home/share
    guest ok = yes
    browseable = yes
    read only = no


    Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.



    I then restarted Linux1, disabled my firewall, and restarted the smb service.



    From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.



    I don't understand why this isn't working now.










    share|improve this question
























      0












      0








      0








      I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:



      [sharing]
      path = /home/share
      guest ok = yes
      browseable = yes
      read only = no


      Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.



      I then restarted Linux1, disabled my firewall, and restarted the smb service.



      From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.



      I don't understand why this isn't working now.










      share|improve this question














      I have a Linux server (Linux1) where I have already configured folders to be shared out. It runs on RHEL 7.2. The configuration of my /etc/samba/smb.conf is as follows:



      [sharing]
      path = /home/share
      guest ok = yes
      browseable = yes
      read only = no


      Everything was working fine, I can access all the subfolders and files in the shared folder from my other Linux server (Linux2). The shared folder was previously mounted as cifs as /mnt/share.



      I then restarted Linux1, disabled my firewall, and restarted the smb service.



      From Linux2, I can see my shared folder and the subfolders, but when I tried to ls into a subfolder, it says ls: reading directory /mnt/share/subfolder: Permission denied.



      I don't understand why this isn't working now.







      permissions samba network-share






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 21 '18 at 3:32









      RayneRayne

      14619




      14619




















          3 Answers
          3






          active

          oldest

          votes


















          0














          I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.






          share|improve this answer






























            0














            You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.



            Running something like chcon -t samba_share_t /home/share should do the trick.






            share|improve this answer






























              0














              Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)



              setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
              getsebool -a | grep samba_export
              semanage fcontext -at samba_share_t "/sharing(/.*)?"
              restorecon /sharing


              Also you may need to add some rules to allow traffic for samba.



              firewall-cmd --permanent --add-service=samba
              firewall-cmd --reload





              share|improve this answer

























                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "2"
                ;
                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%2fserverfault.com%2fquestions%2f946220%2fcannot-access-shared-folder-samba%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.






                share|improve this answer



























                  0














                  I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.






                  share|improve this answer

























                    0












                    0








                    0







                    I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.






                    share|improve this answer













                    I just realized that my SELinux was set to Enforcing on Linux1, and that was causing the permissions issue. After disabling it, I was able to access the subfolders and files again.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 21 '18 at 3:45









                    RayneRayne

                    14619




                    14619























                        0














                        You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.



                        Running something like chcon -t samba_share_t /home/share should do the trick.






                        share|improve this answer



























                          0














                          You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.



                          Running something like chcon -t samba_share_t /home/share should do the trick.






                          share|improve this answer

























                            0












                            0








                            0







                            You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.



                            Running something like chcon -t samba_share_t /home/share should do the trick.






                            share|improve this answer













                            You should not disable SELinux. A better idea would be to change the SELinux settings to allow access to your shares.



                            Running something like chcon -t samba_share_t /home/share should do the trick.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 21 '18 at 3:54









                            StringersStringers

                            146




                            146





















                                0














                                Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)



                                setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
                                getsebool -a | grep samba_export
                                semanage fcontext -at samba_share_t "/sharing(/.*)?"
                                restorecon /sharing


                                Also you may need to add some rules to allow traffic for samba.



                                firewall-cmd --permanent --add-service=samba
                                firewall-cmd --reload





                                share|improve this answer





























                                  0














                                  Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)



                                  setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
                                  getsebool -a | grep samba_export
                                  semanage fcontext -at samba_share_t "/sharing(/.*)?"
                                  restorecon /sharing


                                  Also you may need to add some rules to allow traffic for samba.



                                  firewall-cmd --permanent --add-service=samba
                                  firewall-cmd --reload





                                  share|improve this answer



























                                    0












                                    0








                                    0







                                    Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)



                                    setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
                                    getsebool -a | grep samba_export
                                    semanage fcontext -at samba_share_t "/sharing(/.*)?"
                                    restorecon /sharing


                                    Also you may need to add some rules to allow traffic for samba.



                                    firewall-cmd --permanent --add-service=samba
                                    firewall-cmd --reload





                                    share|improve this answer















                                    Instead of disabling selinux set the proper boolean and security context values as follows. (I assume "sharing" is samba share name)



                                    setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
                                    getsebool -a | grep samba_export
                                    semanage fcontext -at samba_share_t "/sharing(/.*)?"
                                    restorecon /sharing


                                    Also you may need to add some rules to allow traffic for samba.



                                    firewall-cmd --permanent --add-service=samba
                                    firewall-cmd --reload






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Apr 12 at 20:40









                                    Community

                                    1




                                    1










                                    answered Dec 21 '18 at 7:52









                                    Vaibhav PanmandVaibhav Panmand

                                    761411




                                    761411



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Server Fault!


                                        • 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%2fserverfault.com%2fquestions%2f946220%2fcannot-access-shared-folder-samba%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

                                        How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                                        What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                                        Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos