Created
January 17, 2013 21:39
-
-
Save 17twenty/4560033 to your computer and use it in GitHub Desktop.
Samba on Fedora 18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I ended up doing the following to get a publically shared folder on F18 after installing samba and samba-client | |
Used the graphical tool to allow samba through the firewalld (it's just called firewall in the applications) or alternatively kill it with prejudice: | |
# sudo systemctl disable firewalld | |
# sudo systemctl stop firewalld | |
Tell the system to enable and start smbd and nmbd | |
# sudo systemctl enable smb | |
# sudo systemctl enable nmb | |
# sudo systemctl start smb | |
# sudo systemctl start nmb | |
Create the folder to share, I chowned mine with nobody:nogroup and created a nogroup entry in /etc/group. | |
# chown -R nobody:nogroup /media/shared/ | |
Create a nobody samba user | |
# smbpasswd -an nobody | |
# sudo vim /etc/samba/smb.conf | |
... | |
[global] | |
... | |
security = domain | |
... | |
map untrusted to domain = yes | |
map to guest = bad password | |
wide links = yes | |
guest account = nobody | |
... | |
[share] | |
comment = Public Share | |
path = /media/shared/ | |
browseable = yes | |
guest ok = yes | |
public = yes | |
available = yes | |
Restart samba and you're good to go | |
# sudo systemctl restart smb | |
During this process, you can test the status at any point with: | |
# smbclient -L localhost -U nobody | |
or | |
# smbtree | |
And finally, tell selinux to get lost with | |
# sudo setsebool samba_share_fusefs on | |
That should be all you need! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can view the current status of the SELinux config using:
getsebool -a | grep samba
To make the selinux change permanent after testing, you will need to use:
sudo setsebool -P samba_share_fusefs on