Bug 47340

Summary: App Center should call scripts inside containers as user root
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5    
Version: UCS 4.3   
Target Milestone: UCS 4.3-1-errata   
Hardware: Other   
OS: Linux   
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:

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>