added -x to pkill for exact match

This commit is contained in:
mischa 2020-07-05 11:42:59 +02:00
parent e71569aace
commit 1372e642b8
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ sub render_doas_conf {
for my $vm_name (sort keys %vms) {
my $_instance = $vms{$vm_name}{'instance'} || $vm_name;
my $_owner = $vms{$vm_name}{'owner'} || $vms{$vm_name}{'username'};
printf $fh_doas "permit nopass %s as root cmd pkill args -9 -f %s\n", $_owner, $_instance;
printf $fh_doas "permit nopass %s as root cmd pkill args -9 -xf %s\n", $_owner, $_instance;
}
close $fh_doas;
}

View File

@ -1,4 +1,4 @@
date="2019/12/01"
date="2018/07/02"
payment="70"
donated=""
name="Test2 User"

View File

@ -1,4 +1,4 @@
date="2018/05/21"
date="2020/07/21"
payment="60"
donated=""
name="Test3"