[pve-devel] [PATCH] implement chown and chmod for user root group www-data and perm 0640
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Mar 10 10:28:38 CET 2017
>> +
>> + if (user == 0 && group == cfs.gid)
>
> If we do not change either group or user chmod uses `-1` for that
> parameter.
> So something like this:
>
> // we get -1 if no change should be made
> if ((user == 0 || user == -1) && (group == cfs.gid || group ==
> -1))
>
> should be done here, this allows also:
>
> chmod root /etc/pve/...
> chmod :www-data /etc/pve/...
>
> else only
> chmod root:www-data /etc/pve/...
typo: s/chmod/chown/
I should really give an third look to what i write, sorry for the noise.
More information about the pve-devel
mailing list