Skip to content

Instantly share code, notes, and snippets.

@suzker
Last active October 16, 2023 09:42
Show Gist options
  • Save suzker/562dc80e51841847e8d9 to your computer and use it in GitHub Desktop.
Save suzker/562dc80e51841847e8d9 to your computer and use it in GitHub Desktop.
[ARCH] Setting up Samba sharing on ArchLinux
>> Install Samba
pacman -S samba
>> Cp configuration file from default
cp /etc/samba/smb.conf.default /etc/samba/smb.conf
>> add share to Share configuration section
[2tb]
comment = 2TB storage on Samba
path = /mnt/2tb
public = no
writable = yes
printable = no
>> enable samba at start up
sudo systemctl enabled smbd.socket
sudo systemctl start smbd.socket
>> add a user
If it doesn't exist yet, create a Linux user account for the Samba user. Substitute samba_user with your preferred name:
# useradd samba_user
Samba users use a password separate from that of the Linux user accounts. Create the Samba user account with the same name as in the previous command:
# pdbedit -a -u samba_user
smbpasswd samba_user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment