I am creating a shell script to automate our certificate import process. It will be running as root to update group policy. Once complete, how can we change the root to logged in username in MAC?
Ex:
#!/bin/bash
VERSION=1
#Internal network check
if ping -c 2 source.vmware.com ; then OK ; else echo “Exiting, not connected to internal network” ; fi
sudo gpupdate
Post this we will have to run a command "SCC" which will import the certificate, but it only runs as the logged user (AD username)? Need help...