From: Michael Shigorin <mike@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] anydesk
Date: Wed, 30 Dec 2020 16:27:30 +0300
Message-ID: <20201230132730.GI9478@imap.altlinux.org> (raw)
In-Reply-To: <b4031485-725b-6da7-42b9-213926e6f28e@yandex.ru>
On Wed, Dec 30, 2020 at 04:25:23PM +0300, Vladimir Karpinsky wrote:
> >> Я не знаю, как работает start-stop-daemon
> > У него есть ман, в котором описана опция -u. :)
> > Но мне кажется, что лучше глянуть /etc/init.d/template
> > и почитать в /etc/init.d/functions функцию start_daemon()
> > на предмет --user|--set-user.
> Проблема в том, что при запуске службы нигде не предполагается
> использование никакого другого юзера, в конце концов можно было
> бы через su запустить.
А гляньте всё-таки предложенное:
man start-stop-daemon
/-u
view /etc/init.d/template
<Esc>:q
view /etc/init.d/functions
/--user
И неважно, что у других -- даже если все руками запускают.
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
next prev parent reply other threads:[~2020-12-30 13:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-18 17:06 Vladimir Karpinsky
2020-12-28 22:53 ` Konstantin Lepikhov
2020-12-29 7:00 ` Vladimir Karpinsky
2020-12-29 10:29 ` Konstantin Lepikhov
2020-12-29 11:11 ` Vladimir Karpinsky
2020-12-30 12:31 ` Michael Shigorin
2020-12-30 13:25 ` Vladimir Karpinsky
2020-12-30 13:27 ` Michael Shigorin [this message]
2020-12-30 14:45 ` Vladimir Karpinsky
2020-12-30 17:01 ` Michael Shigorin
2020-12-30 17:42 ` Vladimir Karpinsky
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=20201230132730.GI9478@imap.altlinux.org \
--to=mike@altlinux.org \
--cc=sysadmins@lists.altlinux.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
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git