[Casper] Delete items Desktop

Thomas Larkin tlarki at kckps.org
Wed May 6 08:14:05 PDT 2009


For the desktop you can set a user only preference in composer and then push it out to the systems and make it self heal, so that if it is altered it will get it again.  You can also look at a log out/in hook that disables that preference.  If they are managed via an OS X server you can use Server to manage the group's preference to disallow changes to the desktop background pref pane in system preferences. 

Do delete all desktop items a simple one liner can work as a log out hook. 

#!/bin/sh 

#delete current user's desktop items 
#WARNING, THIS WILL DELETE EVERYTHING 

/bin/rm -rf /Users/$3/Desktop/* 




Please note that the $3 and $4 options only pull the current user in casper from log in/out policies.  They also only work if ran by Casper, since the $3 variable means nothing outside of Casper. 

I think I got it right but I could have $3 and $4 confused.  I know one is the current user when parsed by Casper.


___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry:  913-449-7589
office:  913-627-0351





>>> Kathie Iorizzo <kiorizzo at latinschool.org> 05/06/09 9:36 AM >>>
Hi .. I'm not a script person. I'm looking for a way that on log out 
all the items are deleted off the desktop.  Here is why.  Our students 
connect to a server that is in their dock.  Sometimes they accidently 
grab their folder and drag it to the desktop. This in reference causes 
the permissions on those folders to be wacky and no one but an admin 
can delete the folders. Within a week I have 20 gigs of student data 
copied over to the desktop and I have to manually remove it.  The lab 
monitor is unable to remove it because he does not have admin rights.

Last.. is there  a way to lock the desktop pattern?

_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090506/29952efb/attachment.html 


More information about the Casper mailing list