0x00009b / pkget

Install packages on any Debian based Linux distro without root or installing it on the entire system
GNU General Public License v3.0
117 stars 41 forks source link

bash: ./pget: Permission denied #5

Open ceen23 opened 3 years ago

ceen23 commented 3 years ago

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

0x00009b commented 3 years ago

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 :)

ceen23 commented 3 years ago

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

0x00009b commented 3 years ago

may i ask what system you are on ?

0x00009b commented 3 years ago

looks like someone has it locked down hard

sanazsab commented 3 years ago

Hi,

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

How could I fix it?

0x00009b commented 3 years ago

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.

sanazsab commented 3 years ago

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.

0x00009b commented 3 years ago

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 … <#m5977972861421875555> 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.

sanazsab commented 3 years ago

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 … <#m5977972861421875555> 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?