Skip to main content

Accessing U: Drive (Home Directory) From Linux

This method will detail accessing your U: drive (remote home directory) from a Linux (Ubuntu/RedHat) system.

Other Linux distributions will act similarly, but details may differ. This method also details a permanent

(active after reboot) configuration.

This article describes an unsupported configuration.

 NOTE: If you are off-campus and wanting to access your files this way you will need to be connected to Clarkson's VPN
        

  1. Make sure you have the required packages
    1. Ubuntu:   $ sudo apt-get install cifs-utils 
    2. RedHatL  $ sudo yum install cifs-utils
  2. Make your mount directory
    1. $ mkdir /mnt/adhome
  3. Create a credentials file, add your username and password to it, and set the proper permissions on it
    1. $ nano /home/yourlocalusername/.smbcredentials

       
      username=yourADusername
      password=yourADpassword

    2. $ chmod 600 /home/yourlocalusername/.smbcredentials

  4. Modify FSTAB
    1. $ sudo vi /etc/fstab
    2. Add a new line at the bottom of the file that looks like the following
      1. //ad.clarkson.edu/shares/Employee\040Home\040Directory /mnt/adhome cifs credentials=/home/yourlocalusername/.smbcredentials,vers=1.0,iocharset=utf8mb4,sec=ntlmi 0 0
  5. Mount the drive
    1. $ sudo mount /mnt/adhome
  6. Test mount worked by accessing it
    1. $ cd /mnt/adhome
    2. If you files appear in there try editing and adding a file to make sure things work properly.