Commit 89cef8eb authored by Russ Fish's avatar Russ Fish

Update for change in the Windows password returned by tmcc.

parent 28194243
......@@ -11,7 +11,7 @@
#
# We also arrange for this to be run by login shells under ssh.
PATH=/usr/local/etc/emulab:/bin:$SYSTEMROOT/system32:$PATH
PATH=/usr/local/etc/emulab:/bin:`cygpath -u "$SYSTEMROOT/system32"`:$PATH
export PATH
# Samba server.
......@@ -34,7 +34,7 @@ user=`id -un`
if [ $user == root ]; then
user=`tmcc creator | sed 's|.*SWAPPER=\([^ ]*\).*|\1|'`
fi
pswd=`tmcc accounts windows | awk '/^ADDUSER LOGIN='$user' /{print substr($0,index($0," PSWD=")+9,8)}'`
pswd=`tmcc accounts windows | awk '/^ADDUSER LOGIN='$user' /{print substr($0,index($0," PSWD=")+6,8)}'`
if [ -z "$pswd" ]; then
echo "No account for user $user, so no remote file access."
sleep 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment