Enable Samba on Fedora 24
Lets make this easy and switch up to root:
$ su - Password:
Install the following files:
dnf install samba samba-common samba-client system-config-samba dnf install policycoreutils-python-utils
Configure SELinux to enable read/write access to shared dirs:
semanage fcontext -a -t samba_share_t "/home/dave/workspace(/.*)?" semanage fcontext -a -t samba_share_t "/home/dave/projects(/.*)?" restorecon -R -v /home/dave/workspace/ restorecon -R -v /home/dave/projects/
Add samba share and permissions:
system-config-samba
Change to PERMANENT configuration, change default rules to HOME, and enable SAMBA and SAMBA-CLIENT ports:
firewall-config
Start and enable samba services:
systemctl start smb.service systemctl start nmb.service systemctl enable smb.service systemctl enable nmb.service
Restart firewall:
systemctl restart firewalld.service
Add user password:
smbpasswd -a dave
Leave a Reply