zmfixperms missing ...
 
Notifications
Clear all

zmfixperms missing 26.3.0

3 Posts
3 Users
0 Reactions
73 Views
(@hippiecool)
Eminent Member
Joined: 2 years ago
Posts: 30
Topic starter  

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


   
Quote
(@sharif)
Honorable Member Admin
Joined: 4 years ago
Posts: 931
 

@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

 


   
ReplyQuote
(@djpark)
New Member
Joined: 2 years ago
Posts: 12
 

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?

This post was modified 2 days ago by djpark

   
ReplyQuote