* [gentoo-user] share control rights to a daemon by both root and another user
@ 2009-02-08 15:59 zhangweiwu
2009-02-08 16:30 ` Daniel Troeder
0 siblings, 1 reply; 3+ messages in thread
From: zhangweiwu @ 2009-02-08 15:59 UTC (permalink / raw
To: gentoo-user
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.
3) is very easy because I am root; 1) is also easy, difficult part is 2).
I first thought of setting the process suid and make him owner of the
executable. However I found if I do so, the process starts with his
privilege while belonging to me, he could not signal the processes of mine.
Is the requirement 2 possible with Linux? How?
If the problem can be solved giving the setting two users both are not
root, the solution would be even more preferable.
Thanks in advance!
--
Real Softservice
Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang
Tel: +86 (10) 8773 0650 ext 603
Mobile: 159 1111 7382
http://www.realss.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] share control rights to a daemon by both root and another user
2009-02-08 15:59 zhangweiwu
@ 2009-02-08 16:30 ` Daniel Troeder
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Troeder @ 2009-02-08 16:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]
Am Sonntag, den 08.02.2009, 23:59 +0800 schrieb zhangweiwu@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 can stop the daemon started by me; 3) I can stop the
> daemon started by him.
>
> 3) is very easy because I am root; 1) is also easy, difficult part is 2).
>
> I first thought of setting the process suid and make him owner of the
> executable. However I found if I do so, the process starts with his
> privilege while belonging to me, he could not signal the processes of mine.
>
> Is the requirement 2 possible with Linux? How?
>
> If the problem can be solved giving the setting two users both are not
> root, the solution would be even more preferable.
>
> Thanks in advance!
>
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.
Bye,
Daniel
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] share control rights to a daemon by both root and another user
[not found] ` <c3kRr-3fU-5@gated-at.bofh.it>
@ 2009-02-09 1:44 ` zhangweiwu
0 siblings, 0 replies; 3+ messages in thread
From: zhangweiwu @ 2009-02-09 1:44 UTC (permalink / raw
To: gentoo-user
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 need to add a
configuration in sudo that everyone in "fetch" group (who can run the
daemon) should be able to sudo and run the daemon. I'll try it later.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-09 1:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <c3kop-2Ds-5@gated-at.bofh.it>
[not found] ` <c3kRr-3fU-5@gated-at.bofh.it>
2009-02-09 1:44 ` [gentoo-user] share control rights to a daemon by both root and another user zhangweiwu
2009-02-08 15:59 zhangweiwu
2009-02-08 16:30 ` Daniel Troeder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox