Kace - deploy Microsoft templates to MAC via Dell Kace 1000
09/04/2014 3024 views
I`m trying to deploy Microsoft Word templates through K1000.
The problem i have is that i can copy the template file to the Kace download/packages folder with the built in script function.
From there i want to copy the Template.docm file to
"Users/"username"/Library/Application Support/Microsoft/Office/User Templates/"
I have tried to run a copy.sh script with the cp command to the specified folder. But im not able to copy the file as root user since the destination is in the Users/currentuser/Library and root user doesnt have the rights to the folder.
I have also tried with sudo chmod +x to give the root user acees to the folder and then copy the file but with the same result.
Tried my script directly on the mac where it works perfectly since im logged in with the user himself.
So is there a way to run the script with the currently logged in user?
here is my script, im not really strong in scripting so please bear with me:
sudo chmod +x "~/Library/Application Support/Microsoft/Office/User Templates"
cp "~/Library/Application Support/Dell/KACE/data/kbots_cache/packages/kbots/59/Template.docm" "Users/$LOGNAME/Library/Application Support/Microsoft/Office/User Templates"
can anyone help me in this case?