Discover Snippets

shayan_doust / MountUniFS.sh Created at Tue Sep 29 14:58:10 BST 2020
University of Liverpool CIFS mounter for GNU/Linux systems
# Decrypt password file
# Just a GPG encrypted file containing the password
gpg /usr/local/share/UniMount.gpg

PASS=$(cat /usr/local/share/UniMount)

# Remove decrypted file
rm -f /usr/local/share/UniMount
mount -t cifs //ufs01/user01/sgsdoust /mnt/sgsdoust -o sec=ntlm,domain=LIVAD,vers=1.0,username=sgsdoust,password=${PASS},uid=shayandoust