We having been using a script deployed in JAMF to delete home folders
upon log out. Our users are Active Directory users, many users one
machine. It has been working great. Here is the script. !/bin/bash
USER=$(stat -f '%Su' /dev/console)dscl . -read...
By changing the script to as suggested by ddcdennisb we got the same
error. However with a run of 2-3 times it finally did work. So our new
script reads like this !/bin/bash USER=$(stat -f '%Su' /dev/console)dscl
. -read /Groups/admin GroupMembership...