[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#812511: apt-get download: "Can't drop privileges ..."



On Sun, Jan 24, 2016 at 04:06:10PM +0100, Jakub Wilk wrote:
> Package: apt
> Version: 1.2
> Severity: minor
> 
> I get a warning when "apt-get download"ing stuff as root:
> 
> # apt-get download nyancat
> Get:1 http://ftp.debian.org/debian unstable/main i386 nyancat i386 1.4.4-1 [13.3 kB]
> Fetched 13.3 kB in 3s (3834 B/s)    W: Can't drop privileges for downloading
> as file '/root/nyancat_1.4.4-1_i386.deb' couldn't be accessed by user
> '_apt'. - pkgAcquire::Run (13: Permission denied)

Yes, _apt cannot write to /root, obviously. It's a message for you that
the http method disabled a security feature because you forced it too.

I'm not sure if it's possible, but it would be nice if we could create
a temporary directory in the CWD owned by _apt and then write to that
as the _apt user, and moves the file(s) into the CWD as root once we're
done.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: