ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Cannot view contents of a samba share

    IT Discussion
    5
    11
    255
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by IRJ

      I created a wide open guest acessible samba share with these permissions:

      [share]
      
      path = /share
      browsable = yes
      writable = yes
      read only = no
      force user = nobody
      guest ok = yes
      
      

      I can successfully mount this share on the remote system. However I cannot view any files. I am playing around in a lab so I gave chmod 777 to /share and restarted both servers. Samba client is still unable to view files.

      When I run ls -la /share on the client that mounted the share, it returns this:

      total 8
      drwxrwxrwx  2 root root 4096 Jun 21 20:05 .
      drwxr-xr-x 24 root root 4096 Jun 21 20:22 ..
      

      Are the permissions only set to root user? I need them to be anonymous in this case.

      1 Reply Last reply Reply Quote 0
      • IRJI
        IRJ
        last edited by

        Got it working. I had to set the user to nobody instead of guest. Oddly enough it would mount as guest, but just not be readable.

        1 Reply Last reply Reply Quote 5
        • brandon220B
          brandon220
          last edited by

          May need

          public = yes

          in the config if I remember correctly.

          IRJI 1 Reply Last reply Reply Quote 0
          • IRJI
            IRJ @brandon220
            last edited by

            @brandon220 said in Cannot view contents of a samba share:

            May need

            public = yes

            in the config if I remember correctly.

            Still the same result.

            1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite
              last edited by

              Ubuntu/Debian or Fedora/CentOS? If its Fedora/CentOS, SELinux needs to be configured.

              IRJI 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce
                last edited by

                Create a test file in the directory, then run ls -lash

                IRJI 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch
                  last edited by JaredBusch

                  @IRJ
                  Try this post?

                  That I used Fedora, should not matter.

                  IRJI 1 Reply Last reply Reply Quote 1
                  • IRJI
                    IRJ
                    last edited by

                    Thank for the help. I'll likely take a look at this on Monday

                    1 Reply Last reply Reply Quote 1
                    • IRJI
                      IRJ @Obsolesce
                      last edited by

                      @Obsolesce said in Cannot view contents of a samba share:

                      Create a test file in the directory, then run ls -lash

                      I was able to create a text file, and permissions to everyone are showing rwx on the directory.

                      1 Reply Last reply Reply Quote 0
                      • IRJI
                        IRJ @black3dynamite
                        last edited by

                        @black3dynamite said in Cannot view contents of a samba share:

                        Ubuntu/Debian or Fedora/CentOS? If its Fedora/CentOS, SELinux needs to be configured.

                        I tried disabling apparmor still no joy.

                        1 Reply Last reply Reply Quote 0
                        • IRJI
                          IRJ @JaredBusch
                          last edited by

                          @JaredBusch said in Cannot view contents of a samba share:

                          @IRJ
                          Try this post?

                          That I used Fedora, should not matter.

                          I followed that and reboot both systems. Still nothing 😕

                          1 Reply Last reply Reply Quote 0
                          • IRJI
                            IRJ
                            last edited by

                            Got it working. I had to set the user to nobody instead of guest. Oddly enough it would mount as guest, but just not be readable.

                            1 Reply Last reply Reply Quote 5
                            • 1 / 1
                            • First post
                              Last post