Skip to content

Instantly share code, notes, and snippets.

@rohanrudra55
Forked from tanyuan/samba-elementary-os.md
Created January 5, 2022 08:20
Show Gist options
  • Save rohanrudra55/15d6a4a864128c9c77696472f2517ef0 to your computer and use it in GitHub Desktop.
Save rohanrudra55/15d6a4a864128c9c77696472f2517ef0 to your computer and use it in GitHub Desktop.
Elementary OS (Ubuntu) Samba Server Setup

Setup up Samba file server on Elementary OS (Ubuntu)

So you can access files from other computers (Linux, Mac, Windows) on the same network!

  1. Install Samba:
sudo apt install samba samba-common
  1. Specify the shared folder:
sudo vi /etc/samba/smb.conf

Share home directory only to username: Find [home] and uncomment (delete ;) so there are following configuration:

[homes]
   comment = Home Directories
   browseable = yes
   read only = no
   create mask = 0700
   directory mask = 0700
   valid users = <username>
  1. Add the user to Samba and create a password (independent of system users):
sudo sambapasswd -a <username>
  1. Restart Samba (the system would start Samba automatically in startup):
sudo service smbd restart
  1. Find out IP and connect from the other computer!
ip addr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment