Skip to content

Samba

Setup a Samba server on Fedora

NOTE: This assumes selinux and firewalld is disabled

  1. Install Samba and enable it

    dnf install -y samba
    systemctl enable smb --now
    
  2. Setup user accounts

    smbpasswd -a username
    
  3. Setup shares

    vim /etc/samba/smb.conf
    

    Below is an example share:

    [media]
        comment = Files
        path = /srv/files
        read only = no
        browsable = yes
    
  4. Restart samba

    systemctl restart smb
    

Mount a Samba share

mount -t cifs -o username=<username> //<servername>/<sharename> /mnt/point/

Last update: August 12, 2023
Created: June 3, 2023