pkget icon indicating copy to clipboard operation
pkget copied to clipboard

bash: ./pget: Permission denied

Open ceen23 opened this issue 3 years ago • 9 comments

I get the following error after using chmod +x setup.sh and running it. Then I try ./pget and this error accures

bash: ./pget: Permission denied

ceen23 avatar Nov 19 '20 11:11 ceen23

that's actually my bad i'll push an update later today a work around would just be to directly chmod +x pget let me know if this works :)

0x00009b avatar Nov 19 '20 11:11 0x00009b

Thx fr the fast reply Ok i made setup.sh executable and ran it. The pget file got moved to my home directory Using Debian10 no root access.

Now I run it and get: (doesnt matter if I make it executable or not with chmod)


██████  ██████  ███████ ████████  ██   ██ ██       ██         ██     ██████  ██  ███ █████  ██ 
██      ██  ██ ██     ██ 
██   ██████  ███████  ██ 
**********************************                        

starting install... curent user is mdeberts ##################### ----------> Updating apt caches Reading package lists... E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) mkdir: cannot create directory ‘/home/mdeberts’: Permission denied

ceen23 avatar Nov 19 '20 15:11 ceen23

may i ask what system you are on ?

0x00009b avatar Nov 19 '20 21:11 0x00009b

looks like someone has it locked down hard

0x00009b avatar Nov 19 '20 21:11 0x00009b

Hi,

Unfortunately, I got the below error: ad. mkdir: cannot create directory ‘/home/sanazsab’: Permission denied

How could I fix it?

sanazsab avatar Oct 20 '21 08:10 sanazsab

What's your current working directory

On Wed, Oct 20, 2021, 4:19 AM Sanaz Sabzevari @.***> wrote:

Hi,

Unfortunately, I got the below error: ad. mkdir: cannot create directory ‘/home/sanazsab’: Permission denied

How could I fix it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/0x00009b/pkget/issues/5#issuecomment-947436968, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH7YBD3RBWSSTQFTHSYTUHZ3Q3ANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

0x00009b avatar Oct 20 '21 12:10 0x00009b

What's your current working directory On Wed, Oct 20, 2021, 4:19 AM Sanaz Sabzevari @.***> wrote: Hi, Unfortunately, I got the below error: ad. mkdir: cannot create directory ‘/home/sanazsab’: Permission denied How could I fix it? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH7YBD3RBWSSTQFTHSYTUHZ3Q3ANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hi, my working directory is in Midgard/home/sanazsab in the ssh remote system and I do not have access to its root. I do not want to have the package in my host computer.

sanazsab avatar Oct 20 '21 16:10 sanazsab

Have you tried editing the script and hard coding the paths by default the script uses common Linux env vars

On Wed, Oct 20, 2021, 12:22 PM Sanaz Sabzevari @.***> wrote:

What's your current working directory … <#m_5977972861421875555_> On Wed, Oct 20, 2021, 4:19 AM Sanaz Sabzevari @.***> wrote: Hi, Unfortunately, I got the below error: ad. mkdir: cannot create directory ‘/home/sanazsab’: Permission denied How could I fix it? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment) https://github.com/0x00009b/pkget/issues/5#issuecomment-947436968>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH7YBD3RBWSSTQFTHSYTUHZ3Q3ANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

Hi, my working directory is in Midgard/home/sanazsab in the ssh remote system and I do not have access to its root. I do not want to have the package in my host computer.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/0x00009b/pkget/issues/5#issuecomment-947828378, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH756I67IZD3ENSSLN7LUH3UBNANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

0x00009b avatar Oct 20 '21 17:10 0x00009b

Have you tried editing the script and hard coding the paths by default the script uses common Linux env vars On Wed, Oct 20, 2021, 12:22 PM Sanaz Sabzevari @.> wrote: What's your current working directory … <#m_5977972861421875555_> On Wed, Oct 20, 2021, 4:19 AM Sanaz Sabzevari @.> wrote: Hi, Unfortunately, I got the below error: ad. mkdir: cannot create directory ‘/home/sanazsab’: Permission denied How could I fix it? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment) <#5 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH7YBD3RBWSSTQFTHSYTUHZ3Q3ANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . Hi, my working directory is in Midgard/home/sanazsab in the ssh remote system and I do not have access to its root. I do not want to have the package in my host computer. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSDH756I67IZD3ENSSLN7LUH3UBNANCNFSM4T3JEVMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

What do you mean editing the script? where exactly?

sanazsab avatar Oct 20 '21 17:10 sanazsab