Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notlimahrelyt/8ba1897e996bf17899c336fb1bfdcc71 to your computer and use it in GitHub Desktop.
Save notlimahrelyt/8ba1897e996bf17899c336fb1bfdcc71 to your computer and use it in GitHub Desktop.
How to Mount a S@Y Share using Ubuntu

How to Mount a S@Y Share using Ubuntu.

## UPDATE APT AND INSTALL CIFS
sudo apt update && sudo apt install cifs-utils -y
# SET YOUR VARIABLES
SHARE_PATH="http://storage.yale.edu/home/Spinup_Demo-CC0000-ITSHTS"     ## The path to your S@Y share.
MOUNT_DIR="/mnt/share"                                                  ## The location you'd like to mount to.
NET_ID=abc123                                                           ## Your Yale netID
USER_ID=$(id -u $NET_ID)                                                ## The UID of your user.
GROUP_ID=$(id -g $NET_ID)                                               ## The GID of your user.
sudo mount -t cifs $SHARE_PATH $MOUNT_DIR -o username=$NET_ID,uid=$USER_ID,gid=$GROUP_ID,forceuid,forcegid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment