Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
[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
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