Subject: inadyn fails to write its own pid file due to folder ownership by root

From: Eyal Rozenberg <[email-masked]>
Date: Tue, 10 Sep 2019 22:19:09 +0300

Package: inadyn
Version: 1.99.4-1+b1
Severity: serious

Dear Maintainer,

I'm running inadyn on a Devuan Beowulf (~= Debian Buster) system. inadyn 
is run as the user 'debian-inadyn', with . inadyn fails to daemonize, 
logging the following message:

Failed opening pidfile /run/inadyn/inadyn.pid for writing: Permission denied

And indeed, for some reason, the folder for its pid file, /run/inadyn , 
is owned by root. Since it's  not world-writable nor world-executable, 
inadyn can't write there.

That shouldn't happen...

-- System Information:
Debian Release: 10.0
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IL, LC_CTYPE=en_IL (charmap=UTF-8), LANGUAGE=en_IL:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages inadyn depends on:
ii  adduser  3.118
ii  libc6    2.28-10

inadyn recommends no packages.

inadyn suggests no packages.

-- Configuration Files:
/etc/default/inadyn changed [not included]
/etc/inadyn.conf changed [not included]

-- no debconf information