Skip to content

Instantly share code, notes, and snippets.

@razodactyl
Last active March 30, 2020 14:14
Show Gist options
  • Save razodactyl/893c93da9243a1e7a7fde57c8370c870 to your computer and use it in GitHub Desktop.
Save razodactyl/893c93da9243a1e7a7fde57c8370c870 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo docker run -it -p 137:137/udp -p 138:138/udp -p 445:445 --network host \
-v "${HOME}:/mount" \
-d dperson/samba -n -p \
-u "jonathan;password" \
-s "Public (Jonathan);/mount/Public;yes;no;yes;all;jonathan;jonathan;Comment goes here..." \
-s "Downloads (Jonathan);/mount/Downloads;yes;no;yes;all;jonathan;jonathan;Downloads folder on Jonathan PC..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment