Skip to content

Instantly share code, notes, and snippets.

@ijash
Last active July 8, 2019 17:06
Show Gist options
  • Save ijash/bcbef7196d8e5052f4c9959d43f72cce to your computer and use it in GitHub Desktop.
Save ijash/bcbef7196d8e5052f4c9959d43f72cce to your computer and use it in GitHub Desktop.

Share samba folder via CLI

  1. Open the terminal
  2. Install samba with the following command: sudo apt-get install samba smbfs
  3. Configure samba typing: sudo nano /etc/samba/smb.conf
  4. Set your workgroup (if necesary). Go down the bottom of the file :
  5. Set your share folders. Do something like this (change your path and comments)
# Shared Folder
[shared]
  comment = YOUR COMMENTS
  path = /home/user/shared
  read only = no
  guest ok = yes
  1. Restart samba. type: /etc/init.d/smbd restart
  2. Create the shared folder: mkdir /home/user/shared
  3. Set the permissions: sudo chmod 0777 /home/user/shared
  4. check the folder in network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment