Solved Cannot view contents of a samba share
-
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.
-
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. -
May need
public = yes
in the config if I remember correctly.
-
@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.
-
Ubuntu/Debian or Fedora/CentOS? If its Fedora/CentOS, SELinux needs to be configured.
-
Create a test file in the directory, then run
ls -lash
-
-
Thank for the help. I'll likely take a look at this on Monday
-
@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.
-
@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. -
@JaredBusch said in Cannot view contents of a samba share:
That I used Fedora, should not matter.
I followed that and reboot both systems. Still nothing
-
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.