I noticed that /opt/zextras/libexec/zmfixperms is missing. Is this by design, did I miss something after an upgrade?
Is there another way to run the command to fix permissions or is this just a missing package?
- carbonio-ce 26.3.2
- carbonio-core/jammy,now 4.5.4-1jammy amd64 [installed,automatic]
- Ubuntu 22.04
Thanks,
Hippiecool
@hippiecool
Yes, from release 26.3.0 zmfixperms (/opt/zextras/libexec/zmfixperms.sh) is no longer available. So the zmfixperms was responsible for:
- creating system users, groups and group members
- fixing ownership & permissions for directories, files
As system users and groups are created during package installation, one part of the zmfixperms script is never being used by the users most of the time.
Also, zmfixperms takes lots of time to execute completely.
Now we have divided zmfixperms into two systemd components:
root@mail:~# ls /usr/lib/sysusers.d/carbonio-*.conf root@mail:~# ls /usr/lib/tmpfiles.d/carbonio-*.conf
Here, sysusers.d looks after User & Group Management and tmpfiles.d looks after Directory & File Management.
So to handle ownership, permissions of directories and files from now on you have to use:
systemd-tmpfiles --create # inplace of zmfixperms
For additional insight:
root@mail:~# systemctl status systemd-tmpfiles-setup.service root@mail:~# systemctl status systemd-sysusers.service
Thanks
It is a good move to use systemd to ensure the system user and file permissions & ownership but it is not meant to replace zmfixperms. Sometimes we need to run zmfixperms to fix incorrect permissions or ownership after rsync files during bare-metal DR. Since systemd-tmpfiles are supposed to be called during the boot, we just hope the permission and ownership are fixed with expectation of correct config files by Zextras. Perhaps running "systemd-tmpfiles --create" may do the job. Can gurus here confirm?
