_apt permissions on 'partial' folders

If none of the more specific forums is the right place to ask

_apt permissions on 'partial' folders

Postby LeeE » 2017-10-28 19:35

After upgrading a test system from Jessie to Stretch I've found that the permissions on '/var/cache/apt/archives/partial' and '/var/lib/apt/lists/partial' are set to 700 for the _apt user every time an update is performed, overwriting my manually set permissions, with the result that my rsync based backup scripts now raise errors because the daemon can no longer access these two folders.

Note that everything else in '/var/cache/apt/' and '/var/lib/apt/' still allows read access, so everything else in the 'lists' and 'archives' is still getting backed up ok.

Of course, to simply stop the errors I could exclude these two folders but that's not really solving the problem; that's just not backing up those two folders (even though I know they'll normally be empty).

Any ideas how to get around this?

I'd also like to know why such strict permissions are being enforced on what is essentially a temporary storage space to hold incomplete files, just while they're being downloaded, especially when it seems ok to then allow them to be generally readable once the download is complete? I just can't see any sense in that.

...or something
Posts: 44
Joined: 2006-04-23 18:31
Location: Harlow, Essex, UK

Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests