UID changes for clickpkg user breaks app updates/installs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
Critical
|
Colin Watson |
Bug Description
The UID for the 'clickpkg' user is not hardcoded, so may change from one build to the next. As a result the /opt/click.
Steps to reproduce.
Install Ubuntu Touch image 32 on mako
Create a single sign-on account
Install an application
Update phone to #55
Install another application
Observe the install fails
/opt/click.
--------
Just updated to #55 on mako and tried to install an app. The download/install failed (log file fragment attached).
2013-12-09 17:14:09,845 - DEBUG - "Fatal error: /home/phablet/
Cannot install /home/phablet/
Looks like permissions have become screwy on /opt/click.
drwxr-xr-x 3 root root 4096 Dec 3 14:08 opt
drwxr-xr-x 133 dnsmasq ssh 8192 Dec 2 20:57 click.ubuntu.com
Every folder inside /opt/click.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.7-0ubuntu1
Architecture: armhf
Date: Mon Dec 9 17:18:58 2013
InstallationDate: Installed on 2013-12-09 (0 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20131209.1)
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
SHELL=/bin/bash
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
summary: |
- Application fails to install after downloading #55 mako + UID changes for clickpkg user breaks app updates/installs |
no longer affects: | ubuntu-download-manager (Ubuntu) |
description: | updated |
Changed in livecd-rootfs (Ubuntu): | |
importance: | Undecided → High |
affects: | livecd-rootfs (Ubuntu) → click (Ubuntu) |
Changed in click (Ubuntu): | |
status: | New → Triaged |
Changed in click (Ubuntu): | |
status: | Triaged → Fix Committed |
assignee: | nobody → Colin Watson (cjwatson) |
importance: | High → Critical |
Comparing two phones
alan@deep- thought: ~$ diff passwd_32 passwd_55 x:101:103: :/home/ syslog: /bin/false x:102:104: User Metrics: /var/lib/ usermetrics: /bin/false x:103:105: :/var/run/ dbus:/bin/ false x:104:46: usbmux daemon, ,,:/home/ usbmux: /bin/false x:105:65534: dnsmasq, ,,:/var/ lib/misc: /bin/false x:106:108: :/nonexistent: /bin/false x:101:104: :/home/ syslog: /bin/false x:102:105: User Metrics: /var/lib/ usermetrics: /bin/false x:103:106: :/var/run/ dbus:/bin/ false x:104:107: :/nonexistent: /bin/false x:105:46: usbmux daemon, ,,:/home/ usbmux: /bin/false x:106:65534: dnsmasq, ,,:/var/ lib/misc: /bin/false
20,25c20,25
< syslog:
< usermetrics:
< messagebus:
< usbmux:
< dnsmasq:
< clickpkg:
---
> syslog:
> usermetrics:
> messagebus:
> clickpkg:
> usbmux:
> dnsmasq:
So the user clickpkg was uid 106 and is now 104, causing the perms on all the files in /opt/click. ubuntu. com to be wrong.