Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Last active May 15, 2023 18:24
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tanyuan/5af7123b694200cdc59625e63b8143f0 to your computer and use it in GitHub Desktop.
Save tanyuan/5af7123b694200cdc59625e63b8143f0 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
@ijaxon
Copy link

ijaxon commented May 15, 2023

s/sambapasswd/smbpasswd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment