myhelp:samba
Samba
Some stuff to share data with samba
Share your home-dir
With the newest shit on the market (selinux, firewalld, and so on …) it a little more work than without. No worries it is quite easy. First install your samba and configure your home-share. Paste the follown code in your smb.conf
[myuser] path = /home/myuser read only = no browseable = no valid users = myuser
Run some commands and it is running
# firewall-cmd --permanent --add-service samba # setsebool -P samba_enable_home_dirs 1 # setsebool -P samba_export_all_ro 1 # setsebool -P samba_export_all_rw 1 # smbpasswd -a myuser < enter password > # systemctl start smb
Maybe SELinux is still preventing the access, also this is no problem. Just run two more commands
# grep smbd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp
myhelp/samba.txt · Last modified: by ulrich
