Files
DECSEraser/test_network_drive.sh
T

19 lines
366 B
Bash

#!/bin/bash
#!/usr/bin/env bash
netid=
echo "Enter netid: "
read -r netid
while [[ $netid =~ ^\s*$ ]];
do
echo "Your netid cannot be blank."
echo "Enter netid: "
done
if ! kinit "$netid"@EGR.MSU.MSU
then
exit
fi
mkdir /mnt/decs
mount -t cifs -o user="$netid",sec=krb5i "//decs/decs/support/dban_logs" /mnt/decs
echo "test" > "/mnt/decs/test.txt"