Skip to content

Instantly share code, notes, and snippets.

@awabcodes
Created June 18, 2022 21:05
Show Gist options
  • Select an option

  • Save awabcodes/b5b2d792b08a252dafe43280747f78d5 to your computer and use it in GitHub Desktop.

Select an option

Save awabcodes/b5b2d792b08a252dafe43280747f78d5 to your computer and use it in GitHub Desktop.
[SAMBA Config] #samba #nas

Installation

sudo apt install samba samba-common-bin

Config file

/etc/samba/smb.conf
[ShareName]

path = /path/to/share
valid users = {{username}}
browseable = yes
writable = yes
read only = no
guest ok = no

Set user password

sudo smbpasswd -a {{username}}

Service management

sudo systemctl restart smbd nmbd
sudo systemctl status smbd nmbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment