[Dovecot] Does a plugin can have root privileges ?
Hello,
I wish to get "Fetchmail Wake" works in my environment. This plugin send SIGUSR1 to fetchmail so it wakes up when mail client grabs mail.
For the moment "Fetchmail Wake" is executed by mail_uid (defined in dovecot.conf) which is not enough to send signal to fetchmail daemon (and access to fetchmail.pidfile).
Thank you!
On Thu, 2009-05-28 at 17:14 +0200, Fabien wrote:
Hello,
I wish to get "Fetchmail Wake" works in my environment. This plugin send SIGUSR1 to fetchmail so it wakes up when mail client grabs mail.
For the moment "Fetchmail Wake" is executed by mail_uid (defined in dovecot.conf) which is not enough to send signal to fetchmail daemon (and access to fetchmail.pidfile).
Maybe have your plugin execute a setuid-binary that sends the signal? Or something else. In any case no, a plugin can't have root privileges.
Timo Sirainen a écrit :
On Thu, 2009-05-28 at 17:14 +0200, Fabien wrote:
Hello,
I wish to get "Fetchmail Wake" works in my environment. This plugin send SIGUSR1 to fetchmail so it wakes up when mail client grabs mail.
For the moment "Fetchmail Wake" is executed by mail_uid (defined in dovecot.conf) which is not enough to send signal to fetchmail daemon (and access to fetchmail.pidfile).
Maybe have your plugin execute a setuid-binary that sends the signal? Or something else. In any case no, a plugin can't have root privileges.
Ok, thank you. Then may be I'll use fetchmail user for both Dovecot and fetchmail.
participants (2)
-
Fabien
-
Timo Sirainen