Arch Linux Samba Server 2021
Published on: August 4, 2021
Hi all, in this video i will show how to install Samba Server on Arch Linux.
I hope you enjoy!
Links
smb.conf Link
Commands
1. Install Samba
$ sudo pacman -S samba wget
2. smb.conf
$ sudo wget -O /etc/samba/smb.conf LinkToSmb.ConfAbove
Edit /etc/samba/smb.conf and change:
- Line 26
workgroup = WORKGROUP
- Create Samba Share In the end off file.
[sambashare]
comment = My Samba Share
path = /samba
writable = yes
browsable = yes
create mask = 0700
directory mask 0700
read only = no
guest ok = no
3. Directory and sambausers group
$ sudo groupadd -r sambausers
$ sudo usermod -aG sambausers yourUsername
$ sudo smbpasswd -a yourUsername
$ sudo mkdir /samba
$ sudo chown -R :sambausers /samba
$ sudo chmod 1770 /samba
4. Start the Services
$ sudo systemctl enable --now smb
$ sudo systemctl enable --now nmb
5. Test the Server
$ smbclient -L //127.0.0.1/share -U yourUserName
smb> l
smb> exit
$ sudo chown -R g+rwx /samba