Created
March 22, 2021 06:58
-
-
Save NanoDano/4921664de8a7e44b69ce5ac5a9066f48 to your computer and use it in GitHub Desktop.
Mount SMB Drive in Debian Linux
This file contains hidden or 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
#!/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