Re: mode of pidfile - solved

2020-07-03 Thread Kai Peter
On 2020-07-01 17:45, Kai Peter wrote: Hi, I'm curious why the option -pidfile creates a file with mode 0600. Usually I drop root privileges with the -runas parameter. The pidfile is then owned by root:root and there is no chance to read it with the new uid. Running a post command to change the

Re: mode of pidfile

2020-07-01 Thread Ottavio Caruso via
On 2020-07-01 18:00, Ottavio Caruso wrote: On Wed, 1 Jul 2020 at 16:59, Ottavio Caruso wrote: On Wed, 1 Jul 2020 at 16:45, Kai Peter wrote: > > Hi, > > I'm curious why the option -pidfile creates a file with mode 0600. It doesn't : Sorry, I meant it does, but not owned by root:

Re: mode of pidfile

2020-07-01 Thread Ottavio Caruso
On Wed, 1 Jul 2020 at 16:59, Ottavio Caruso wrote: > > On Wed, 1 Jul 2020 at 16:45, Kai Peter wrote: > > > > Hi, > > > > I'm curious why the option -pidfile creates a file with mode 0600. > > It doesn't : Sorry, I meant it does, but not owned by root: > > oc@e130:~$ cat

Re: mode of pidfile

2020-07-01 Thread Ottavio Caruso
On Wed, 1 Jul 2020 at 16:45, Kai Peter wrote: > > Hi, > > I'm curious why the option -pidfile creates a file with mode 0600. It doesn't : oc@e130:~$ cat opt/bin/boot-openbsd-virtio #!/bin/sh qemu-system-x86_64 \ -drive if=virtio,file=/home/oc/VM/img/openbsd.image,index=0,media=disk \ -M

mode of pidfile

2020-07-01 Thread Kai Peter
Hi, I'm curious why the option -pidfile creates a file with mode 0600. Usually I drop root privileges with the -runas parameter. The pidfile is then owned by root:root and there is no chance to read it with the new uid. Running a post command to change the mode is a bit annoying. And in