Skip to content

Instantly share code, notes, and snippets.

@jlschrag
Last active July 19, 2022 19:55
Show Gist options
  • Save jlschrag/fb835b95261fa90e512e5ba33947d1d6 to your computer and use it in GitHub Desktop.
Save jlschrag/fb835b95261fa90e512e5ba33947d1d6 to your computer and use it in GitHub Desktop.
Permanently Mapping a Windows Share On Linux
username=myusername
password=mysupersecretpassword
#Leave existing content
//yourshareurl/foldername /mnt/yourlocalfolder cifs defaults,credentials=/root/.cifscredentials,vers=1.0 0 0
#repeat this line for additional shares
sudo apt install cifs-utils
sudo su
cd /root
nano .cifscredentials
chmod 600 .cifscredentials
exit
sudo nano /etc/fstab
sudo mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment