I apologize in advance if this is trivial, but I can’t seem to find the ability to run things interactively under the context of currently logged on user. Kind of like ‘runascurrentuser’ utility in Windows version of TEM.
That would try to install the package as the current user, which would only work if the current user has the correct permissions to actually do the install. It would also only work if there is a user logged in at the time.
Normally this is not how you would install something unless there was something odd about the package that required it to run as the current user.
Correct, I am trying to get the installer to run this particular pkg as there are some components that will need to run as user. I ensured that the package had full perms to read write and execute. Additionally, all of our users have local admin rights.
I usually do not like to go this method but the installer I have right now is made for ARD but I am trying to use BigFix to push it out. IE - installing as root will give root full functionality but not all the users.
In the past, I have gone back to the vendor to have them re-make the packge. However, this becomes daunting because each subsequent update will require me to go back to the vendor as well.
That is why I am trying to find a way to run as current user.
I came upon this thread while trying to use override=wait runas=currentuser on OS X. I was trying to execute launchctl as the current user, but it failed. I wound up using:
wait su -l {name of logged on user} -c "/bin/launchctl load -F /Llibrary/LaunchAgents/com.foo.plist"