Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied #703

Closed
Demicro opened this issue Jan 16, 2017 · 14 comments
Closed

Permission denied #703

Demicro opened this issue Jan 16, 2017 · 14 comments

Comments

@Demicro
Copy link

Demicro commented Jan 16, 2017

deploy
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
/data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: /data/user/0/ru.meefik.linuxdeploy/env/cli.sh: line 1104: grep: Permission denied
<<< deploy

I have meefik busybox
Install button ----> permission denied
Configure button ------> permission denied

@hijinio
Copy link

hijinio commented Jan 16, 2017

Do you have root access?

@Demicro
Copy link
Author

Demicro commented Jan 16, 2017

Yes, l have root
I take the output.log from /data/user/.........

@ghost
Copy link

ghost commented Jan 18, 2017

I reinstall application, reinstall os, but not solve this problem.

@meefik
Copy link
Owner

meefik commented Jan 18, 2017

Please install BusyBox in /system/xbin. Try to change "Settings -> PATH variable" to /system/xbin and run "Settings - > Update ENV". Also image size set up to 2047 MB (busybox mke2fs limitation).

@Demicro
Copy link
Author

Demicro commented Jan 18, 2017

Busybox /su/xbin

Now

:02:55] ## bootstrap/rootfs : do_install && do_configure
[11:02:55] :: Installing bootstrap/rootfs ...
[11:02:55] Checking installation path ... done
[11:02:55] Making new disk image (2000 MB) ... 1+0 records in
[11:02:55] 1+0 records out
[11:02:55] 1048576 bytes (1.0MB) copied, 0.012559 seconds, 79.6MB/s
[11:02:55] done
[11:02:55] Making file system ... done
[11:02:55] Mounting partitions:
[11:02:55] / ... done
[11:02:55] /proc ... done
[11:02:55] /sys ... done
[11:02:55] /sys/fs/selinux ... done
[11:02:55] /dev ... done
[11:02:55] /dev/pts ... done
[11:02:55] /dev/shm ... done
[11:02:56] /dev/net/tun ... done
[11:02:56] Importing rootfs from tar.gz archive ... wget: bad address 'hub.meefik.ru'
[11:02:56] tar: invalid magic
[11:02:56] tar: short read
[11:02:56] fail
[11:02:56] <<< deploy

@meefik
Copy link
Owner

meefik commented Jan 18, 2017

Which version of BusyBox installed?
Required 1.25.1-meefik or 1.26.2-meefik.

@Demicro
Copy link
Author

Demicro commented Jan 18, 2017

21:04] ## core/mnt : do_start
[11:21:04] :: Configuring core/mnt ...
[11:21:04] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/mtab: nonexistent directory
[11:21:04] ## core/net : do_start
[11:21:04] :: Configuring core/net ...

directory
[11:23:23] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/group: nonexistent directory
[11:23:23] grep: /data/local/mnt/etc/passwd: No such file or directory
[11:23:23] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/passwd: nonexistent directory
[11:23:23] grep: /data/local/mnt/etc/group: No such file or directory
[11:23:23] sed: /data/local/mnt/etc/group: No such file or directory
[11:23:23] ## core/sudo : do_install && do_configure
[11:23:23] :: Configuring core/sudo ...
[11:23:23] grep: /data/local/mnt/etc/sudoers: No such file or directory
[11:23:23] chmod: /data/local/mnt/etc/sudoers: No such file or directory
[11:23:23] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/sudoers: nonexistent directory
[11:23:23] chmod: /data/local/mnt/etc/sudoers: No such file or directory
[11:23:23] ## core/unchroot : do_install && do_configure
[11:23:23] :: Configuring core

Busybox 1.26.2 meefik and stericson

@Demicro
Copy link
Author

Demicro commented Jan 18, 2017

46:39] chroot: can't execute '/bin/su': No such file or directory

Súpersu sistemless 2.79

@ghost
Copy link

ghost commented Jan 19, 2017

I'm solve this problem :)
Use another kernel. (Don't use stock kernel)

@spchamp
Copy link

spchamp commented Jan 29, 2017

On some Android platforms, there may be a 'grep' command located elsewhwere under the pathnames in the app's shell process environment and listed in $PATH – such as /system/bin/grep – in addition to the 'grep' command installed by Meefik's BusyBox distro – such as at /system/xbin/grep. At the user's option, one may run a shell command, 'which grep', in an ordinary terminal emulator so as to determine which grep command is being located, first, by the respective shell command interpreter.

One may wish to rename the "Dysfunctioning grep", to accomodate the grep installed with the respective BusyBox installation process. Of course, the "Dysfunctioning grep" may have been installed on a read-only partition – in which instances, one might consult documentation about rooting one's Android device and correspondingly, an app such as LSpeed, so as to be able to remount the partition in read-write mode, sufficient to rename the respective 'grep' shell command.

Personally, though I'm not too well familiar with the partitions/mount points layout in Android platforms, I wonder if the issue may be correlated with the set of permissions with which the respective partition is mounted, in which there is the "Dysfunctioning grep"?

If it may be an issue of pathnames, maybe the LinuxDeploy app may exec the "Ideal Grep" with a complete shell pathname, in a future update? With an appropriate app deployment – permissions-wise – perhaps LinuxDeploy may even read a shared configuration property from the respective BusyBox app, to determine the BusyBox installation prefix, automatically. Perhaps there is a work-around, however, or it may not be an issue of pathnames.

When running the LinuxDeploy menu command, 'Status', I'm seeing a similar "Permission Denied" issue during exec for the fdisk and sed commands, as well as the singular 'grep' shell command. The former commands are installed under xbin, but I'm not all too certain of their source otherwise.

I've uninstalled a secondary BusyBox distro – now having only one BusyBox installed – and rebooted the tablet, still seeing the 'exec' issue. Perhaps it may be a matter of the filesystem permissions, towards however the respective filesystem is mounted, if not the shell process permissions with which the commands are applied to exec? I see that the app already does 'su', before calling those shell commands.

Maybe it may be anyhow correlated to SE Linux and Samsung Knox, alternately?

@PengGaoxian
Copy link

Settings of linux deploy:

1

Properties:

2
3
4
5

remote conntection:

6
7
Hope this can help you

@adiack
Copy link

adiack commented Aug 8, 2018

@carver2 this helps thanks. A common mistake poeple do also is downloading the wrong busybox, there are several busybox programs out there make sure you download the one from @meefik

@meefik meefik closed this as completed Aug 20, 2018
@tsumansapkota
Copy link

Setting the Installation Path to ENV_DIR, as shown, solved my problem (in Android 10). Directory installation also works inside the ENV_DIR.
Thanks @carver2

@skythe83
Copy link

Changing install directory to ${ENV_DIR}/rootfs/linux has also helped me, thanks @carver2
It fails to properly install on /storage/emulated/0/linux using lineageos 18.1 on a oneplus one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants