Is there a way in OS X to be able to run a shell script that requires admin/sudo privileges on a non-admin account without presenting a prompt for the password? This is useful to us in an organizational setting. For instance, we have several scripts written that check for certain conditions at logon and make system level changes depending on the results--this one specifically checks against AD for membership in a Admin group. If they are it adds them to the local admin group, if not and they are in the local admin group it removes them from the local group.
The goal is to be able to run scripts remotely(from a server) or locally on a client machine silently in the background without needing or alerting the user. We pull this off in Windows without any issues.
Is our ultimate answer to this in the sudoers file? Or are there other alternatives?
The goal is to be able to run scripts remotely(from a server) or locally on a client machine silently in the background without needing or alerting the user. We pull this off in Windows without any issues.
Is our ultimate answer to this in the sudoers file? Or are there other alternatives?