pixel-backup-gang icon indicating copy to clipboard operation
pixel-backup-gang copied to clipboard

start_global_shell.sh throws a "Can't Execute: Permission Denied" error

Open yeahman45 opened this issue 8 months ago • 2 comments
trafficstars

I have a rooted pixel xl (1st gen) I have done su and installed the scripts using sh -c "$(curl -fSs https://raw.githubusercontent.com/master-hax/pixel-backup-gang/install/install.sh)" install.sh

marlin:/storage # sh -c "$(curl -fSs https://raw.githubusercontent.com/master-hax/pixel-backup-gang/install/install.sh)"
install.sh: downloading version 0.0.6 from github
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  1604  100  1604    0     0    959      0  0:00:01  0:00:01 --:--:--  223k
install.sh: unpacking the release archive (requires root)
pixel-backup-gang/mount_ext4.sh
pixel-backup-gang/remount_vfat.sh
pixel-backup-gang/unmount.sh
pixel-backup-gang/find_device.sh
pixel-backup-gang/show_devices.sh
pixel-backup-gang/enable_tcp_debugging.sh
pixel-backup-gang/disable_tcp_debugging.sh
pixel-backup-gang/start_global_shell.sh
install.sh: making the release executable (requires root)
install.sh: pixel backup gang successfully installed to /storage/pixel-backup-gang

when I try to run a script, I get can't execute: Permission denied ex.

./start_global_shell.sh
/system/bin/sh: ./start_global_shell.sh: can't execute: Permission denied

I have tried chmod +x the script but same error.

Any idea?

yeahman45 avatar Feb 23 '25 20:02 yeahman45

sorry for the late reply, didn't notice the issue.

try installing to the folder from the example - /data/local/tmp - it has increased permissions

if that works, i'll add a note to the README and update the install script. if it doesn't work, please share the output of ls -alh ./pixel-backup-gang here and we can investigate further.

master-hax avatar Feb 28 '25 19:02 master-hax

hey @yeahman45 - were you able to try this out?

master-hax avatar Apr 08 '25 15:04 master-hax

bump @yeahman45

master-hax avatar Jun 11 '25 04:06 master-hax

try installing to the folder from the example - /data/local/tmp - it has increased permissions

This worked for me. But the mount command doesn't work.

ramma avatar Sep 09 '25 05:09 ramma

Hey! Just wanted to raise that I had the same issue: "Can't Execute: Permission Denied".

Using /data/local/tmp indeed solved the problem, I could mount without not issue but I had to blindly use /dev/block/sdi1 (sdi instead of sdg) and hope for the best.

I've found that the output of ./show_devices.sh was quite confusing to understand 🤔

Tgo1014 avatar Sep 11 '25 10:09 Tgo1014

i have updated the install script so it should show an error message if enabling execute permission on the scripts fail: https://github.com/master-hax/pixel-backup-gang/blob/da7de2d995f569be23033ac8c56dfc0111dedf28/install.sh#L17

master-hax avatar Sep 11 '25 16:09 master-hax

i also added a note about this in the README: https://github.com/master-hax/pixel-backup-gang/commit/c8a87b38cda2d4c4d310cc846f0dbd63732b4385

master-hax avatar Sep 12 '25 00:09 master-hax