This is the dumbest thing, but I need some help with some scripting if
possible.
I have a policy that calls a shell script that's already local on the box
(why it has to be local I won't get into here) when a particular set of
users logs on as defined in the policy. So the advanced tab has a command
for '/bin/sh /some/file/ondisk.sh'
What I need it to do is copy a file also local on the machine to the Desktop
of the user that just logged on. I can't just use username=$(whoami) because
the policy calls the script as root, and it shouldn't copy to root of
course.
Can someone help? Let me know if you need more clarification. I'm sure this
should be the simplest thing ever for me to do, but for the life of me...
Thanks,
Craig Ernst
Systems Management & Configuration
----------------------------------
University of Wisconsin-Eau Claire
Learning & Technology Services
105 Garfield Ave
Eau Claire, WI 54701
Phone: (715) 836-3639
Fax: (715) 836-6001
----------------------------------
ernstcs at uwec.edu
