Bug 47340 - App Center should call scripts inside containers as user root
App Center should call scripts inside containers as user root
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-11 13:19 CEST by Dirk Wiesenthal
Modified: 2018-08-22 14:26 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2018-07-11 13:19:32 CEST
Some containers defined other users than root to be the default user.

E.g., with "univention-app shell jenkins" you end being "jenkins". This user has limited access to some files.

While this may be a desired feature in some situations, it makes package updates inside the container impossible. Some store/restore scripts may also depend on root access.
Comment 1 Dirk Wiesenthal univentionstaff 2018-07-21 13:52:21 CEST
Fixed
  univention-appcenter 7.0.2-11A~4.3.0.201807211346

All scripts that are now run with "-u root".

univention-app shell got "-u/--user" with default "root".
Comment 2 Felix Botner univentionstaff 2018-07-23 12:40:26 CEST
OK - univention-appcenter scripts and univention-app shell
OK - yaml
Comment 3 Arvid Requate univentionstaff 2018-08-22 14:26:22 CEST
<http://errata.software-univention.de/ucs/4.3/211.html>