Skip to content

Instantly share code, notes, and snippets.

@rustyvz
Created April 7, 2025 19:27
Show Gist options
  • Save rustyvz/0944689ab34c373d3f7409f3b4e69c1b to your computer and use it in GitHub Desktop.
Save rustyvz/0944689ab34c373d3f7409f3b4e69c1b to your computer and use it in GitHub Desktop.
1. Install cifs-utils
sudo apt install cifs-utils
2. Make a share folder. For example:
sudo mkdir /media/share
3. (Optional) Put your credentials into a file:
sudo nano /root/.YourCredentialsFileName
password file
username=Yourusername
password=YourPassword
4. Mount share:
sudo mount -t cifs -o rw,credentials=/root/.YourCredentialsFileName //path/to/file/to/share /media/share
Or with inline credentials:
sudo mount -t cifs -o rw,user=YourUserName,password=YourPassword //path/to/file/to/share /media/share
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment