Created
February 18, 2018 13:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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