Good morning fellow Jamfers...
Having a problem getting a trusted certificate into Firefox for an existing account (I already know how to get it to update when a new Firefox profile is created).
Am able to get it into the keychain, but since Firefox creates a unique profile name for each user, cannot get Casper to replace the file in the proper directory.
We are not authenticating to a source yet (so only local logins) so the $3 parameter doesn't appear to produce a result.
The script works running locally on the system - the line I'm having a problem with is:
Since Casper runs as root, it's changing over the the HOME directory for the root user, not the logged in user. Jamf suggested copying the script locally and having a policy launch it locally using something like:
su -l $3 -c "sh /path/to/scrip.sh"
OR compile it in a DMG and launch the script like:
su -l <username> -c "sh /path/to/scrip.sh"
Neither of these worked. Any help is greatly appreciated!
Thanks in advance,
East Brunswick Public Schools
user=`ls -la /dev/console | cut -d " " -f 4` sudo -u $user cp *sourcefile* /Users/$user/Library/Application Support/Firefox/etc/etc
Something like that should get you in the ballpark to find the logged in user and copy it into their folder.