-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Proot error: Permission denied #148
Comments
Hey, I think the problem is due to the fact that proot is not capable to change permission in the tmp directory. Can you check which permission do you have in tmp? I might need to add another section for this in the FAQs. |
well, to be honest I feel that there may be an os interaction that is run if there is no proot approval in a whitelist scheme for bin/sh then there On Sun, May 29, 2016 at 1:57 AM, Filippo Squillace <[email protected]
|
Interesting. I am not sure the whitelist approval. Have you also tried to create a file in tmp with your permissions? I remember I ve got such issue long time ago due to this. |
What would cause the /bin/sh or /usr/bin/sh to show as Permission denied in No I have not tried to create a tmp file. Why would that demonstrate anything but deep farce in effect? On Sun, May 29, 2016 at 2:23 AM, Filippo Squillace <[email protected]
|
bash [ bash [~]# did work.. On Sun, May 29, 2016 at 3:22 AM, gldbrsentsa S.a. [email protected]
|
This might help: On my system /usr/bin/sh does not exist but /bin/sh does.. Proot reported that /usr/bin/sh had a permissions error..
Could this be because proot is trying to access /usr/bin/sh instead of $PATH/sh? take a look at what my system reports when I try to run both in sequence:
Btw, if you let me know what script is initiating the proot that throws the error, I'll try my own fixes and then send them your way. Also, as mentioned above there seems to be no permissions error with the tmp directory as long as the proot instance has not adopted some rogue set of credentials.. here's another copy of the /tmp directory test you suggested:
my theory is the following line is proot's response to the file legitimately never having been created due to the sh issue..
That temp file probably just isn't there due to the prior error.. Best luck, let me know if you'd like me to get in the script and make some test changes! |
junest is using |
Hi gldbrzent and fsquillace. I've installed JuNest using the documented method 2. I also have this same problem. On my system /bin/sh exists but /usr/bin/sh does not.
First I try using the existing build in /bin/sh
Next I try using the one supplied with JuNest
Now running the host's /bin/sh works
I am assuming that we need to be able to run JuNest successfully to run JuNest's own /bin/sh as ~/.junest/usr/lib/libncursesw.so.6 exists.
|
Hmm.. I'm wondering if this is a permissions issue that spans beyond the basic file rights.. does proot have a ghost os running that's setting more advanced whitelist/blacklist type permissions? It seems like proot and bin/sh as a team could come up with a nasty virtual environment pervasive enough to create a layer of os farce.. Just a thought.. :) |
Thanks @h4xhor. I feel proot provides an ambiguous error in these cases. |
Thanks fsquillace for the pointers, I tried
Looking at the help from
I have tried increasing the verbosity with We see that around line 31 in the log file the same error:
I noticed that I am able to run
... but not if I run them from outside their
So I think for some reason If we use ldd to find the dependencies of
We see that Now libncursesw.so.6 exists in |
Similar problem on CentOS. I don't have any trouble with sh as /usr/bin/sh exists and runs. I am also able to write my /tmp directory. I can even
|
Same problem for me, does it has something to do with this proot-me/proot#79 ? |
I got it working by reverting to the v4 version of proot, in my case the 64 bit version:
|
@buergi's solution worked for me, too. |
@buergi's solution did not work for me, and I have the error (on RHEL) as everyone else has documented it. |
I'll mention this as it may be an issue for others. While I was able to write to and
Somehow (It seems this is a known issue.) |
Part of the problem is if you have That prevents the "Permission denied", but then leads me to: |
Just pulled and built the git tree (f30ce3e3c637d8c0fd1f453cc49eef1e897d7a8b) and it has fixed this for me; even displays a warning about TMPDIR being ...also noticed I was using the Debian version of |
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: