Share the LMDB address table between users
Summary
When using rpcsvc
running as gempro
, it is impossible to open the shared address table located in /mnt/persistent/gemdaq/
since the files are owned by gemuser
without write permission for other users. Such behavior makes it harder to run in parallel the legacy and development software.
Steps to reproduce
- Update the address table via the legacy software in
gem_reg.py
(rpcsvc
runs asgemuser
) - Try to access the LMDB database from a process running under
gempro
(such as the newrpcsvc
) - Fails with the "Permission denied" error
What is the expected correct behavior?
If the address table is located in a shared location it should be usable by more users than the one who created it. In this case, gemuser
and gempro
.
Environment
- Version used: 4edcd3b1