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...")
 
Line 1: Line 1:
 +
==Note==
 +
If you find password issues/Error 13 Access Denied messages it is likely because your password on marvin is different to the password that is in the ldap records on marvin. To reset your ldap password get an admin to run  '''smbldap-passwd <username>''' to reset the password to a known value, then get the user to set their password using '''smbldap-passwd''' **not** '''passwd'''.
 +
 +
 
=Unix=
 
=Unix=
  

Revision as of 08:15, 23 October 2018

Note

If you find password issues/Error 13 Access Denied messages it is likely because your password on marvin is different to the password that is in the ldap records on marvin. To reset your ldap password get an admin to run smbldap-passwd <username> to reset the password to a known value, then get the user to set their password using smbldap-passwd **not** passwd.


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.