What permission am I missing here?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it



sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


It works for the most part until it runs into this:



W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)


What permission am I missing and how do I get it?







share|improve this question





















  • sudo apt install ffmpeg ?
    – arochester
    Jul 11 at 16:43










  • That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
    – DopeGhoti
    Jul 11 at 16:55














up vote
2
down vote

favorite
1












I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it



sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


It works for the most part until it runs into this:



W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)


What permission am I missing and how do I get it?







share|improve this question





















  • sudo apt install ffmpeg ?
    – arochester
    Jul 11 at 16:43










  • That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
    – DopeGhoti
    Jul 11 at 16:55












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it



sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


It works for the most part until it runs into this:



W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)


What permission am I missing and how do I get it?







share|improve this question













I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it



sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


It works for the most part until it runs into this:



W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)


What permission am I missing and how do I get it?









share|improve this question












share|improve this question




share|improve this question








edited Jul 11 at 17:31









Stephen Kitt

139k22296359




139k22296359









asked Jul 11 at 16:37









newuser

132




132











  • sudo apt install ffmpeg ?
    – arochester
    Jul 11 at 16:43










  • That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
    – DopeGhoti
    Jul 11 at 16:55
















  • sudo apt install ffmpeg ?
    – arochester
    Jul 11 at 16:43










  • That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
    – DopeGhoti
    Jul 11 at 16:55















sudo apt install ffmpeg ?
– arochester
Jul 11 at 16:43




sudo apt install ffmpeg ?
– arochester
Jul 11 at 16:43












That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
– DopeGhoti
Jul 11 at 16:55




That would install the package; not just download them. The most common use-case for apt download is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
– DopeGhoti
Jul 11 at 16:55










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You’re not missing a permission, you’re giving apt-get too much privilege; drop the sudo:



apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


apt-get download runs fine as a normal user.



(Technically, you could give the _apt user access to the target directory, but it’s simpler and better to drop sudo.)






share|improve this answer























  • Thanks a lot, it never occurred to me that there was such a thing as too much permission.
    – newuser
    Jul 11 at 17:07










  • It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
    – DopeGhoti
    Jul 11 at 17:16










  • @DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
    – Stephen Kitt
    Jul 11 at 17:19










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454734%2fwhat-permission-am-i-missing-here%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










You’re not missing a permission, you’re giving apt-get too much privilege; drop the sudo:



apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


apt-get download runs fine as a normal user.



(Technically, you could give the _apt user access to the target directory, but it’s simpler and better to drop sudo.)






share|improve this answer























  • Thanks a lot, it never occurred to me that there was such a thing as too much permission.
    – newuser
    Jul 11 at 17:07










  • It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
    – DopeGhoti
    Jul 11 at 17:16










  • @DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
    – Stephen Kitt
    Jul 11 at 17:19














up vote
3
down vote



accepted










You’re not missing a permission, you’re giving apt-get too much privilege; drop the sudo:



apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


apt-get download runs fine as a normal user.



(Technically, you could give the _apt user access to the target directory, but it’s simpler and better to drop sudo.)






share|improve this answer























  • Thanks a lot, it never occurred to me that there was such a thing as too much permission.
    – newuser
    Jul 11 at 17:07










  • It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
    – DopeGhoti
    Jul 11 at 17:16










  • @DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
    – Stephen Kitt
    Jul 11 at 17:19












up vote
3
down vote



accepted







up vote
3
down vote



accepted






You’re not missing a permission, you’re giving apt-get too much privilege; drop the sudo:



apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


apt-get download runs fine as a normal user.



(Technically, you could give the _apt user access to the target directory, but it’s simpler and better to drop sudo.)






share|improve this answer















You’re not missing a permission, you’re giving apt-get too much privilege; drop the sudo:



apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")


apt-get download runs fine as a normal user.



(Technically, you could give the _apt user access to the target directory, but it’s simpler and better to drop sudo.)







share|improve this answer















share|improve this answer



share|improve this answer








edited Jul 11 at 16:57


























answered Jul 11 at 16:42









Stephen Kitt

139k22296359




139k22296359











  • Thanks a lot, it never occurred to me that there was such a thing as too much permission.
    – newuser
    Jul 11 at 17:07










  • It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
    – DopeGhoti
    Jul 11 at 17:16










  • @DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
    – Stephen Kitt
    Jul 11 at 17:19
















  • Thanks a lot, it never occurred to me that there was such a thing as too much permission.
    – newuser
    Jul 11 at 17:07










  • It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
    – DopeGhoti
    Jul 11 at 17:16










  • @DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
    – Stephen Kitt
    Jul 11 at 17:19















Thanks a lot, it never occurred to me that there was such a thing as too much permission.
– newuser
Jul 11 at 17:07




Thanks a lot, it never occurred to me that there was such a thing as too much permission.
– newuser
Jul 11 at 17:07












It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
– DopeGhoti
Jul 11 at 17:16




It's not so much too much permission as it is wrong permission. _apt isn't root; it may as well be bob. bob can't access alice's files, even if root can access both bob and alice's files.
– DopeGhoti
Jul 11 at 17:16












@DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
– Stephen Kitt
Jul 11 at 17:19




@DopeGhoti but the only reason apt-get ends up using _apt is because it’s run as root when it doesn’t need to be. So the simple solution is to not run it as root, then it won’t try anything with _apt.
– Stephen Kitt
Jul 11 at 17:19












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454734%2fwhat-permission-am-i-missing-here%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay