Skip to content

Instantly share code, notes, and snippets.

@Red-Eyed
Last active May 26, 2021 05:26
Show Gist options
  • Save Red-Eyed/c3697736357dfeabeeb9650796f1157b to your computer and use it in GitHub Desktop.
Save Red-Eyed/c3697736357dfeabeeb9650796f1157b to your computer and use it in GitHub Desktop.
Windows 10 connect to ubuntu over samba
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
passdb backend = tdbsam
security = user
[public]
comment = MY_PASSPORT
path = /mnt/MY_PASSPORT/data/
browsable = yes
create mask = 0660
directory mask = 0771
writable = yes
@Red-Eyed
Copy link
Author

Ubuntu:

  1. sudo smbpasswd -a $USER
  2. sudo systemctl restart smbd.service nmbd.service

Windows 10:

  1. Go to "This PC"
  2. Click on "Map network drive"
  3. As Folder add "\\samba server IP \ share name"
  4. Check the "Connect using different credentials"
  5. Finish

@Red-Eyed
Copy link
Author

In order to make Ubuntu discovarable from the Windows 10, install wsdd
https://github.com/christgau/wsdd

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