Search This Blog

Thursday, June 23, 2022

Fast Rocky Linux Samba Server for homelab

Just a quick samba share server. I try to make it as fast as possible. Disabled firewalld and selinux. And no security check on it.
dnf erase firewalld selinux-policy libselinux-utils
Install samba and enable the service:
dnf install samba samba-common samba-client
systemctl enable smb
systemctl start smb
systemctl status smb
the necessary permissions
cp /etc/samba/smb.conf /etc/samba/smb.conf.bk
mkdir /var/samba/
chmod -R 0755 /var/samba/
chown -R nobody:nobody /var/samba/
The conf file for /etc/samba/smb.conf:
[global]
        workgroup = WORKGROUP
        security = user
        map to guest = bad user
        dns proxy = no
        server min protocol = SMB3

[videos]
        comment = Videos Directories
        path = /var/samba/
        browsable =yes
        writable = yes
        guest ok = yes
        read only = no
Reload smb service for the change:
systemctl reload smb

No comments:

Post a Comment