From: zhangweiwu@realss.com
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] share control rights to a daemon by both root and another user
Date: Sun, 08 Feb 2009 23:59:38 +0800 [thread overview]
Message-ID: <498F016A.7030603@realss.com> (raw)
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
next reply other threads:[~2009-02-08 15:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-08 15:59 zhangweiwu [this message]
2009-02-08 16:30 ` [gentoo-user] share control rights to a daemon by both root and another user Daniel Troeder
[not found] <c3kop-2Ds-5@gated-at.bofh.it>
[not found] ` <c3kRr-3fU-5@gated-at.bofh.it>
2009-02-09 1:44 ` zhangweiwu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=498F016A.7030603@realss.com \
--to=zhangweiwu@realss.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox