What I want to do is create a temporary user like this useradd -m -e 2009-12-01 -c Temp Account tempUser so that when the account expires (like this one would on December 1, 2009), the computer will run a script to erase all user data for tempUser.Is this possible or are there other ways to remove accounts and user data after they expire?
Is there a way to run a script right after an account deactivated?
scripting;accounts