Mounting marvin remotely

From wiki
Revision as of 09:09, 23 October 2018 by Jw297 (talk | contribs) (Created page with "=Unix= Firstly you'll need to make a .smbcredentials file in the format: username=<username> password=********** Change the permissions: chmod 600 .smbcredentials Now...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Unix

Firstly you'll need to make a .smbcredentials file in the format:

username=<username>
password=**********

Change the permissions:

chmod 600 .smbcredentials


Now you can mount it from the command line:

sudo mount -t cifs -o vers=1.0,credentials=/home/jw279/.smbcredentials,uid=1000,gid=1000 --verbose //marvin.st-andrews.ac.uk/jw279 /home/jw279/Marvin/

changing /home/jw279/.smbcredentials to the path of your .smbcredentials file, replacing jw279 in //marvin.st-andrews.ac.uk/jw279 with your username and /home/jw279/Marvin to the desired mount location.

Alternatively, add a line to /etc/fstab

//marvin.st-andrews.ac.uk/jw279 /home/jw279/Marvin  cifs  vers=1.0,credentials=/home/jw279/.smbcredentials,uid=1000,gid=1000   0   0

replacing jw279 in //marvin.st-andrews.ac.uk/jw279 with your username and /home/jw279/Marvin to the desired mount location.