Skip to content

Instantly share code, notes, and snippets.

@NanoDano
Created March 22, 2021 06:58
Show Gist options
  • Save NanoDano/4921664de8a7e44b69ce5ac5a9066f48 to your computer and use it in GitHub Desktop.
Save NanoDano/4921664de8a7e44b69ce5ac5a9066f48 to your computer and use it in GitHub Desktop.
Mount SMB Drive in Debian Linux
#!/usr/bin/bash
sudo apt install -y cifs-utils
# `uid` and `gid` is the local Linux user and group you want to mount as
# `user` and `password` are the SMB drive credentials. Wrap password with quotes if necessary.
sudo mount -t cifs -o uid=dano,gid=sudo,user=dano,password="my password" \\\\10.0.0.99\\home /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment