Project

General

Profile

Support #936

Updated by Daniel Curtis over 6 years ago

This is a guide for setting up a simple samba share on Arch linux. 

 *WARNING*: This guide does not cover authentication or security configuration. Do not use in a production environment! 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pacman -Syu 
 </pre> 

 * Install samba: 
 <pre> 
 pacman -S samba 
 </pre> 

 * Create a directory to share: 
 <pre> 
 mkdir -p /opt/samba/tmpshare 
 chown -R nobody.nobody /opt/samba/tmpshare 
 chmod -R 777 /opt/samba/tmpshare 
 </pre> 

 * Create a basic smb.conf: 
 <pre> 
 nano /etc/samba/smb.conf 
 </pre> 
 #* And add the following: 
 <pre> 
 [global] 
    workgroup = MYGROUP 
    server string = Samba Server 
    server role = standalone server 
    log file = /var/log/samba/smb-log.%m /usr/local/samba/var/log.%m 
    max log size = 50 
    dns proxy = no 
    map to guest = Bad User 

  

 [tmpshare] 
    comment = Temporary file space 
    path = /opt/samba/tmpshare 
    read only = no 
    public = yes 
    browseable = yes 
    guest ok = yes 
    create mask = 777 
 </pre> 

 * Start and enable samba at boot: 
 <pre> 
 systemctl start smb 
 systemctl enable smb 
 </pre> 

 h2. Resources 

 * https://wiki.archlinux.org/index.php/samba

Back