help with scripts in policys

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 09-09-2008 06:00 AM
Hi Peps
I have a shell script which i can run as root and it runs fine, however when i run via policy it doesnt work, i persume this is because it is running as the logged in user
CleanUpAdobe.sh / $computerName $userName
i persume this in the policy means run as the logged in user?
How do i go about changing that to run? or will a run at startup do this?
Regards
Criss
Criss Myers
Senior Customer Support Analyst (Mac Services)
Apple Certified Technical Coordinator v10.5
LIS Business Support Team
Library 301
University of Central Lancashire
Preston PR1 2HE
Ex 5054
01772 895054

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 09-09-2008 06:10 AM
Did you check box to run as root

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 09-09-2008 07:31 AM
That box doesn't exist in 6.x.
I've run into issues where the login and logout hooked scripts aren't running as root, but the user...I believe. I found this out when trying to trigger packages to install at login on an AD bound machine. Instead of using the credentials provided in the script to mount my SMB share it would always take the logged on user, then fail since they didn't have rights (I don't have my shares global read).
Craig E
