[gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread zhangweiwu
Me as root user of a server wish to share the control privilege (to start and stop) a daemon with another non-root user and find it difficult. The requirement: 1) either me or him can start the daemon then stop it; 2) he can stop the daemon started by me; 3) I can stop the daemon started by him.

Re: [gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread Daniel Troeder
Am Sonntag, den 08.02.2009, 23:59 +0800 schrieb zhangwe...@realss.com: Me as root user of a server wish to share the control privilege (to start and stop) a daemon with another non-root user and find it difficult. The requirement: 1) either me or him can start the daemon then stop it; 2) he

Re: [gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread zhangweiwu
Daniel Troeder schrieb: Hello :) You can use app-admin/sudo to achieve your goal. It can be configured to allow certain users to execute certain commands as other users (possibly root). You can even restrict the allowed arguments to a command. Hi. Thanks for that suggestion. I am thinking I