Comment 34 for bug 1522675

Revision history for this message
dino99 (9d9) wrote : Re: Can't drop privileges for downloading : _apt user not allowed

@juliank (#16)

Michael Vogt has a different opinion that yours, so blaming apt again

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808802
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808802#20
"This is a bug indeed, the question is how it got triggered, that dir
should be owend by the _apt user."

oem@u64:~$ ls -dl /var/cache/apt/archives/partial/
drwx------ 2 _apt root 4096 Sep 24 05:26 /var/cache/apt/archives/partial/
oem@u64:~$ grep -B2 _apt /var/lib/dpkg/info/apt.postinst
 # add unprivileged user for the apt methods
 adduser --force-badname --system --home /nonexistent \
     --no-create-home --quiet _apt || true

 # Fixup any mistake in the home directory of the _apt user
 if dpkg --compare-versions "$2" lt-nl 1.1~exp10~; then
     usermod --home /nonexistent _apt