문제

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