Announcements

Help Wizard

Step 1

NEXT STEP

Incorrect ownership of files installed by deb package

Incorrect ownership of files installed by deb package

Operating System

Linux - Debian 11


My Issue

Files installed by the Spotify deb package are owned by UID 1000. However, files installed to the /usr directories (such as /usr/bin and /usr/share) should be owned by root.

 

This is a packaging and security issue that is causing issues with other programs. For example, see the discussion here: https://github.com/netblue30/firejail/issues/5584

 

For your convenience, I am enclosing below the following which shows ownership by UID 1000 rather than root:

$ wget https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.84.716.gc5f8...
...
$ ar x spotify-client_1.1.84.716.gc5f8b819-2_amd64.deb
$ tar --numeric-owner -tvf data.tar
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/doc/
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/doc/spotify-client/
-rw-r--r-- 1000/1000 160 2022-04-22 18:44 ./usr/share/doc/spotify-client/changelog.gz
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/spotify/
-rw-rw-r-- 1000/1000 10284336 2022-04-01 05:55 ./usr/share/spotify/icudtl.dat
-rw-r--r-- 1000/1000 238 2022-04-22 05:02 ./usr/share/spotify/spotify.desktop
-rw-rw-r-- 1000/1000 6010712 2022-04-22 18:44 ./usr/share/spotify/libGLESv2.so
-rw-rw-r-- 1000/1000 4138176 2022-04-22 18:44 ./usr/share/spotify/libvk_swiftshader.so
-rw-rw-r-- 1000/1000 187903408 2022-04-22 18:44 ./usr/share/spotify/libcef.so
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/spotify/icons/
-rw-r--r-- 1000/1000 889 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-24.png
-rw-r--r-- 1000/1000 1573 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-64.png
-rw-r--r-- 1000/1000 527 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-16.png
-rw-r--r-- 1000/1000 6027 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-128.png
-rw-r--r-- 1000/1000 2074 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-48.png
-rw-r--r-- 1000/1000 24360 2022-04-22 05:02 ./usr/share/spotify/icons/spotify_icon.ico
-rw-r--r-- 1000/1000 770 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-22.png
-rw-r--r-- 1000/1000 1230 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-32.png
-rw-r--r-- 1000/1000 22733 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-512.png
-rw-r--r-- 1000/1000 13393 2022-04-22 05:02 ./usr/share/spotify/icons/spotify-linux-256.png
-rw-rw-r-- 1000/1000 107 2022-04-01 06:27 ./usr/share/spotify/vk_swiftshader_icd.json
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/spotify/swiftshader/
-rw-rw-r-- 1000/1000 2457736 2022-04-22 18:44 ./usr/share/spotify/swiftshader/libGLESv2.so
-rw-rw-r-- 1000/1000 269216 2022-04-22 18:44 ./usr/share/spotify/swiftshader/libEGL.so
-rw-rw-r-- 1000/1000 635724 2022-04-01 06:33 ./usr/share/spotify/chrome_100_percent.pak
-rw-rw-r-- 1000/1000 255720 2022-04-22 18:44 ./usr/share/spotify/libEGL.so
drwxr-xr-x 1000/1000 0 2022-11-15 21:57 ./usr/share/spotify/apt-keys/
-rw-r--r-- 1000/1000 1184 2022-04-22 05:02 ./usr/share/spotify/apt-keys/spotify-2021-10-27-5E3C45D7B312C643.gpg
-rw-rw-r-- 1000/1000 1184 2022-11-15 21:57 ./usr/share/spotify/apt-keys/spotify-2022-11-14-7A3A762FAFD4A51F.gpg
-rw-rw-r-- 1000/1000 672272 2022-04-01 06:48 ./usr/share/spotify/v8_context_snapshot.bin
-rw-rw-r-- 1000/1000 957180 2022-04-01 06:33 ./usr/share/spotify/chrome_200_percent.pak
-rw-rw-r-- 1000/1000 581336 2022-04-22 18:44 ./usr/share/spotify/libvulkan.so.1
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/spotify/locales/
-rw-rw-r-- 1000/1000 299910 2022-04-01 06:29 ./usr/share/spotify/locales/en-US.pak
-rw-rw-r-- 1000/1000 351544 2022-04-01 06:48 ./usr/share/spotify/snapshot_blob.bin
-rw-rw-r-- 1000/1000 6976573 2022-04-01 06:46 ./usr/share/spotify/resources.pak
-rwxr-xr-x 1000/1000 70253192 2022-04-22 18:44 ./usr/share/spotify/spotify
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/share/spotify/Apps/
-rw-r--r-- 1000/1000 1736814 2022-04-22 18:44 ./usr/share/spotify/Apps/login.spa
-rw-r--r-- 1000/1000 4835700 2022-04-22 18:44 ./usr/share/spotify/Apps/xpui.spa
drwxr-xr-x 1000/1000 0 2022-04-22 18:44 ./usr/bin/
lrwxrwxrwx 1000/1000 0 2022-04-22 18:44 ./usr/bin/spotify -> ../share/spotify/spotify

Reply
0 Replies

Suggested posts