Your message dated Sat, 10 Dec 2016 22:06:31 +0100
with message-id <[email protected]>
and subject line Re: #229972: invoke-rc.d: could check for root
has caused the Debian Bug report #229972,
regarding invoke-rc.d: could check for root
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
229972: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229972
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.85-9
Severity: wishlist
In my opinion invoke-rc.d should check if it is run with correct
privileges, it's just a matter of simple:
if [ "`id -u`" != "0" ]; then
....
and it fixes strange behaviour like:
---cut---
~% invoke-rc.d fetchmail restart
Restarting mail retrieval agent: system-wide fetchmail not configured.
~% sudo invoke-rc.d fetchmail restart
Password:
Restarting mail retrieval agent: fetchmail.
---cut---
IMO it is better to get "Must run as root" message (or something
similar), than "fetchmail not configured", which is on course not
true.
Regards
Adam
[email protected]
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mentat 2.4.22 #1 śro gru 3 18:00:19 CET 2003 i686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL
-- no debconf information
--- End Message ---
--- Begin Message ---
As this bug states, invoke-rc.d is for maintainer scripts or other
automated uses, which can just be configured correctly.
Also, /sbin/service has appeared in the meantime, which, at least
with systemd (by forwarding) asks for authentication for non-root.
--
christian hofstaedtler <[email protected]>
--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers