Connect to Research Storage on Linux

Test system: Ubuntu 16.04.4, date: 2018-03-13.
Note that these commands assume you’re using the root account.

Install Samba and CIFS Utils:

apt install smbclient cifs-utils

Create a directory to mount to (using “rs” here for Research Storage):

mkdir /rs

Create a file to store your credentials:

vi /root/.creds

Inside that file, add your credentials:

username=WUSTLKey
password=password
domain=accounts

Protect the file so that only root can view it:

chmod 600 /root/.creds

To test the mount, run this:

mount -t cifs //storage1.ris.wustl.edu/WUSTLKey /rs -o credentials=/root/.creds

Note that the above command will by default only let the root user have access. To allow access for another account (your main account, for example), add the UID/GID to the command:

mount -t cifs //storage1.ris.wustl.edu/WUSTLKey /rs -o uid=1001,gid=1001,credentials=/root/.creds

To make it permanent and mount on each boot:

Add this to the bottom of /etc/fstab:

//storage1.ris.wustl.edu/WUSTLKey   /rs   cifs   uid=1001,gid=1001,credentials=/root/.creds   0 0