Last active
July 19, 2022 19:55
-
-
Save jlschrag/fb835b95261fa90e512e5ba33947d1d6 to your computer and use it in GitHub Desktop.
Permanently Mapping a Windows Share On Linux
This file contains 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
username=myusername | |
password=mysupersecretpassword |
This file contains 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
#Leave existing content | |
//yourshareurl/foldername /mnt/yourlocalfolder cifs defaults,credentials=/root/.cifscredentials,vers=1.0 0 0 | |
#repeat this line for additional shares |
This file contains 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
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