Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Found the internet!
r/RockyLinux
4
Posted by1 month ago

Samba install/setup for Rocky Linux

I'm looking for a thorough guide to install and setup/configure Samba share on Rocky Linux that would be accessed by Windows clients, with Rocky Linux having SELinux enabled.
I've found some guides some assume public shares. However I want to setup a secure share.

I've got to a stage where I'm able to access the Samba share with a specific user from Windows.
But even though I've given the rw permissions it will not allow rw to the share.
Also secondary issue is Samba complaining about not been able to write some log files. I manually created the files with the right rw permissions still returns the error upon status check.

5 comments
70% Upvoted
Log in or sign up to leave a comment
level 1

As the red-hot guide suggests, your best bet is to install the setroubleshoot package then run sealert -a on your selinux log files. That should give you a rundown on the most likely thing(s) blocking your service.

You can also run getsebool -a which will produce a list of all the boolean varies enabled or disabled for selinux. Samba has a variety of things listed here which you may want to tweak to get this working, depending on where the shares are and what you're trying to do with them. If this is the case though, that should be picked up by the sealert output.

3
level 2
Op · 1 mo. ago

ok great, these are excellent tips and I now can see where I need to look, thank you so much.

2
level 1

It is probably selinux that is blocking it. When I disable it on my machine the samba drive works perfectly.

4
level 1

Here is how you find SELinux messages and logging:

https://access.redhat.com/articles/2191331

2
level 1
[deleted]
· 1 mo. ago

Rocky Linus is the same as almalinux and centos

0

About Community

An open enterprise operating system project.
6.0k

Members

9

Online


Created Dec 9, 2020