Skip to content

Instantly share code, notes, and snippets.

@Kalki5
Created February 18, 2018 13:35
Show Gist options
  • Save Kalki5/65869bf6e33b7683b668cfe636b982ce to your computer and use it in GitHub Desktop.
Save Kalki5/65869bf6e33b7683b668cfe636b982ce to your computer and use it in GitHub Desktop.
Installing samba server on ubuntu. Use map network drive in windows to connect to the linux samba server
sudo apt-get update
sudo apt-get install samba
sudo smbpasswd -a <user_name>
sudo vim /etc/samba/smb.conf
[<folder_name>]
path = /<folder_path_to_share>
valid users = <user_name>
read only = no
sudo service smbd restart
sudo apt-get install smbclient
# List all shares:
smbclient -L //<HOST_IP_OR_NAME>/<folder_name> -U <user>
# connect:
smbclient //<HOST_IP_OR_NAME>/<folder_name> -U <user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment