Skip to content

Instantly share code, notes, and snippets.

@RodolpheGohard
Last active May 31, 2021 08:25
Show Gist options
  • Save RodolpheGohard/468b7c45f902f612972233411ff68e8e to your computer and use it in GitHub Desktop.
Save RodolpheGohard/468b7c45f902f612972233411ff68e8e to your computer and use it in GitHub Desktop.
samba config on ubuntu

follow this guide: https://ubuntu.com/tutorials/install-and-configure-samba#3-setting-up-samba

create share

Create the share manually in /etc/samba/smb.conf

[sambashare]
    comment = Samba on Ubuntu
    path = /home/username/sambashare
    read only = no
    browsable = yes

allow and restart

  • restart service: sudo service smbd restart
  • allow service: sudo ufw allow samba

create user

  • create unix user guest
  • create samba user guest/guest: sudo smbpasswd -a username. username must be an existing unix user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment