Bug #6495
closedsystemd/uhd permission issues
100%
Description
https://gerrit.osmocom.org/c/osmo-trx/+/36714 introduced HOME, but %h is This is the home directory of the user running the service manager instance. In case of the system manager this resolves to "/root". Note that this setting is not influenced by the User= setting configurable in the [Service] section of the service unit.
This completely breaks osmo-trx:
osmo-trx-uhd[4013]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error' osmo-trx-uhd[4013]: what(): boost::filesystem::status: Permission denied: "/root/.config/uhd.conf" osmo-trx-uhd[4013]: signal 6 received
Updated by osmith 4 days ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Thanks for the report. This should fix it, please give it a try:
https://gerrit.osmocom.org/c/osmo-trx/+/37295
Note that the original patch setting HOME was https://gerrit.osmocom.org/c/osmo-trx/+/35127. The one you linked to was the cherry-picked version for the 1.6.2 release, which does not yet have the change to run osmo-trx-uhd as user instead of root (https://gerrit.osmocom.org/c/osmo-trx/+/30131).