How to start services as Standard User after rebooting ?

Hi,


Trying to setup snmp service to remain running under the Standard user even after rebooting. is their a way to do this or does the user account need to be changed from standard user to administrator ?


Inside terminal we always run Sudo <admin> and then pw, then run the service which works when using standard user account, but once the machine is rebooted, we have to repeat the process. is their an easier way ?

Posted on May 20, 2020 3:01 PM

Reply
1 reply

May 20, 2020 8:11 PM in response to Karlon1

Create a launchd plist to start it at startup.

There is a GUI app to produce the plist called Lingon.

You can manually create the file, yourself as it is just text, but needs specific syntax.

A LaunchAgent runs at login and generally runs the process as the logged in user.

A LaunchDaemon runs at startup and is usually run as root.

https://alvinalexander.com/mac-os-x/launchd-examples-launchd-plist-file-examples-mac/

https://medium.com/swlh/how-to-use-launchd-to-run-services-in-macos-b972ed1e352

Just search for launchd plist examples.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to start services as Standard User after rebooting ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.