ok.. so where do I put the above script... and I like the idea of the cron that actually deletes the .Trash location... would this do this for all users on the server... sounds like a plan to me!Go3iverson said:Well, if you want, either empty the trash with a script at login, logout, or with a cron task that runs every x minutes.
Here's something to work around an AD user not being able to empty the trash. Its simple and just deletes the contents of the trash for the logged in user.
#Empty trash in an AD Domain
#Written by Michael Dhaliwal
#Kiss your trash good bye!
rm -rf ~/.Trash/*