Package Details: mbmd-git r533.3b12dcc-1

Git Clone URL: https://aur.archlinux.org/mbmd-git.git (read-only, click to copy)
Package Base: mbmd-git
Description: ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
Upstream URL: https://github.com/volkszaehler/mbmd
Licenses: BSD
Provides: mbmd
Submitter: archi42
Maintainer: archi42
Last Packager: archi42
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-07 23:41 (UTC)
Last Updated: 2022-10-07 23:41 (UTC)

Dependencies (1)

Required by (0)

Sources (3)

Pinned Comments

archi42 commented on 2022-10-10 15:32 (UTC) (edited on 2023-01-26 17:46 (UTC) by archi42)

Tested with a "SDM630 Modbus v2" via a FR232R USB bridge.

For testing you can run mbmd scan -a /dev/serial/by-id/usb-SOMETHING_if00-port0. Caveat: When running this as a normal user, make sure to be in the uucp group. The program seems to not complain if it can't open the device. For the service this should be no issue, since the necessary user is created on installation and added to the appropriate group.

Overall, I made the systemd service file a bit more strict than the one upstream. It's not perfect I guess, so I'm open to suggestion to further improve the security of the daemon (preferably as a diff =)).

P.S.: I noticed the mbmd user+group are only created AFTER the post-install script is executed.

So make sure to manually set the right permissions for the /etc/mbmd/mbmd.yaml (and [...].dist):

sudo chgrp mbmd /etc/mbmd/mbmd.yaml

Latest Comments

archi42 commented on 2022-10-10 15:32 (UTC) (edited on 2023-01-26 17:46 (UTC) by archi42)

Tested with a "SDM630 Modbus v2" via a FR232R USB bridge.

For testing you can run mbmd scan -a /dev/serial/by-id/usb-SOMETHING_if00-port0. Caveat: When running this as a normal user, make sure to be in the uucp group. The program seems to not complain if it can't open the device. For the service this should be no issue, since the necessary user is created on installation and added to the appropriate group.

Overall, I made the systemd service file a bit more strict than the one upstream. It's not perfect I guess, so I'm open to suggestion to further improve the security of the daemon (preferably as a diff =)).

P.S.: I noticed the mbmd user+group are only created AFTER the post-install script is executed.

So make sure to manually set the right permissions for the /etc/mbmd/mbmd.yaml (and [...].dist):

sudo chgrp mbmd /etc/mbmd/mbmd.yaml