Project

General

Profile

Actions

Support #34

open

What's the right way to launch "dnf install..." from within a non-root binding ?

Added by Emmanuel Jubera [SAFT] almost 2 years ago. Updated 10 months ago.

Status:
Submitter feedback needed
Priority:
Normal
Assignee:
Target version:
Start date:
11/23/2022
Due date:
% Done:

0%

Estimated time:
Hardware platform:
Solidrun (aarch64)
OS Affects Version/s:
arz-1.0
OS Fix Version/s:
Labels:

Description

In order to perform a system update my binding needs to launch dnf install....
But dnf can only be launched by user root, whereas my binding is at the moment started as user rp-owner like shown below:

BMS2ORP_BINDING=bms2orp-binding
RP_USER=rp-owner
AFM_CMD="runuser -u ${RP_USER} -- afm-util"
${AFM_CMD} start ${BMS2ORP_BINDING} > /dev/null

Please detail how this problem can be solved within redpesk framework.

Actions

Also available in: Atom PDF