I am trying to allow a not root user to create an Upstart-event. So the only thing this user should do with Upstart is to create an event.

As far as I understand, I can grant some privileges in Upstart.conf. But unfortunately I was not able to find how to solve my problem. Could you please help me?

Thanx.

有帮助吗?

解决方案

Easiest solution is to add the users in sudo to only be allowed to run the upstart commands you specify.

Users in the adm group would be able to do below:

%adm ALL=(ALL) NOPASSWD: /sbin/start app, /sbin/stop app

But replace with the commands you want to restrict them to.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top