Skip to content

Instantly share code, notes, and snippets.

@spdin
Created January 30, 2020 09:59
Show Gist options
  • Select an option

  • Save spdin/c92cc833f952668961e8e6f91493e58d to your computer and use it in GitHub Desktop.

Select an option

Save spdin/c92cc833f952668961e8e6f91493e58d to your computer and use it in GitHub Desktop.
Install Samba on Ubuntu
#install samba
sudo apt install samba
#check installation
whereis samba
# output :
# samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.8.gz
# edit file
sudo nano /etc/samba/smb.conf
[kvgn-alpha]
comment = needs username and password to access
path = /home/kvgn-alpha/
browseable = yes
guest ok = no
writable = yes
# restart
sudo service smbd restart
# firewall
sudo ufw allow samba
# set password
sudo smbpasswd -a kvgn-alpha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment