Difference between revisions of "Mounting marvin remotely"

From wiki
Jump to: navigation, search
(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...")
(No difference)

Revision as of 08:09, 23 October 2018

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.