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

using openTerm on my iPad #9

Closed
passereve opened this issue Jan 20, 2018 · 7 comments
Closed

using openTerm on my iPad #9

passereve opened this issue Jan 20, 2018 · 7 comments

Comments

@passereve
Copy link

Hi !

I am not able to go around that ‘permission denied’ 👎

Could you give me a hand ?

Thanks for your job !
Regards, François

iPad de François: ls
iPad de François: cd /
cd: /: permission denied

iPad de François: date
Sat Jan 20 13:33:01 CET 2018

iPad de François: ?
awk, cat, cd, chflags, chksum, clear, compress, cp, curl, date, du, echo, egrep, env, fgrep, grep, gunzip, gzip, help, link, ln, ls, mkdir, mv, printenv, pwd, readlink, rm, rmdir, scp, sed, setenv, sftp, stat, sum, tar, touch, tr, uname, uncompress, unsetenv, uptime, wc, whoami

iPad de François: cd ..
cd: ..: permission denied

iPad de François: login
login: command not found

iPad de François: man ls
man: command not found

iPad de François: uname
Darwin

iPad de François: whoami
mobile

iPad de François: cd /var
cd: /var: permission denied

iPad de François: cd /var/mobile
cd: /var/mobile: permission denied

iPad de François: cd /var/mobile/Containers
cd: /var/mobile/Containers: permission denied

iPad de François: cd /var/mobile/Containers/Data
cd: /var/mobile/Containers/Data: permission denied

iPad de François: cd /var/mobile/Containers/Data/Application
cd: /var/mobile/Containers/Data/Application: permission denied

iPad de François:

@holzschu
Copy link
Owner

All of that is normal. The OpenTerm application, to be acceptable for the AppStore, respects the sandbox boundaries. So changing directory outside the boundary of the app sandbox is impossible.

If you are sideloading, you can disable the "setMiniRoot" line in the OpenTerm source code. Note that it won't change much. cd / is permitted, but not cd into any of the directories below /. cd .. is permitted, but only once. All the others are still forbidden (the user mobile does not have reading rights for these directories).

What is it that you were trying to do?

@passereve
Copy link
Author

opening /folders/ then cmd ls -ln

@passereve
Copy link
Author

So I understood that I am just allowed to create new folders to write new files, isn’t it ?

@holzschu
Copy link
Owner

Yes. You can also download them (with curl), move them around (with the Files app), edit them (with other apps). But always inside the sandbox.

@passereve
Copy link
Author

Thank you
By the way this is already great 👍
Thanx again for your job !
François

@holzschu
Copy link
Owner

holzschu commented Feb 1, 2018

Can I close this issue?

@passereve
Copy link
Author

passereve commented Feb 2, 2018 via email

@holzschu holzschu closed this as completed Feb 2, 2018
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

2 participants