I want to share a folder on my RHEL to all windows users.My requirements are:users need to access from windowsusers need read only accessno authentication requiredWhat I have tried:Samba Server is up and runningWebmin module installed to use SambaUIWebmin > Servers > Samba Windows File Sharing Created a new file share with path as /home/guest/testfolderUsed myshare as share nameIn security:-Writable :no-Guest access: Guest Only-Guest unix user: nobody-Hosts to allow: all-Hosts to deny: noneI am able to see the folder testfolder but I am not able to browse its contents
Samba Shared Folder
rhel;samba
Does guest Unix user have access to the underlying Unix folder that you're trying to share? Permissions can get a little confusing when dealing with Samba. The user's that you specify in the smb.conf file need to have access to the Unix filesystem.So in your case I would assume that the user nobody doesn't have read access to /home/guest/testfolder.selinuxAs you've discovered SELinux can impact you're ability to access a directory using Samba. You can do a couple of things if SELinux is blocking you:- disable it...This command will temporarily disable it:$ sudo setenforce 0This is helpful when trying to determine if it's an issue.- enable /home Samba access for SELinux...You need to run this command on the samba server:$ sudo setsebool -P samba_enable_home_dirs 1. If the directories are under /home. - enable /some/other/dir Samba access for SELinuxIf they're anywhere else you need to re-tag their SELinux contexts' like so: $ sudo chcon -t samba_share_t /some/other/dir