Support #936
Setup a Simple Samba Share on Arch Linux
Status:
Closed
Priority:
Normal
Assignee:
Category:
Network Attached Storage
Target version:
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
- And add the following:
- Start and enable samba at boot:
systemctl start smb systemctl enable smb
Resources¶
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