Project

General

Profile

Support #936

Setup a Simple Samba Share on Arch Linux

Added by Daniel Curtis over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Network Attached Storage
Target version:
Start date:
05/13/2018
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

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!

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syu
    
  • Install samba:
    pacman -S samba
    
  • Create a directory to share:
    mkdir -p /opt/samba/tmpshare
    chown -R nobody.nobody /opt/samba/tmpshare
    chmod -R 777 /opt/samba/tmpshare
    
  • Create a basic smb.conf:
    nano /etc/samba/smb.conf
    
    • And add the following:
      [global]
         workgroup = MYGROUP
         server string = Samba Server
         server role = standalone server
         log file = /var/log/samba/smb-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
      
  • Start and enable samba at boot:
    systemctl start smb
    systemctl enable smb
    

Resources

#1

Updated by Daniel Curtis over 6 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 0.50 h
#2

Updated by Daniel Curtis over 6 years ago

  • Description updated (diff)
#3

Updated by Daniel Curtis over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF