MrSnowdenJr / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Can not change or create files in home #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Terminal
2. enter `touch foo'

What is the expected output? What do you see instead?
expected: a file named `foo' is created in the current directory
actual: Error: "touch: setting time of `foo': No such file or directory"

What version of the product are you using? On what operating system?
iOS 4.1 on iPhone 4, Terminal-472 

Please provide any additional information below.
- It's not a unix-permission problem (`ssh localhost' and then `touch foo' 
works)
- rm etc. fail also

Original issue reported on code.google.com by Aleksej....@gmail.com on 17 Oct 2010 at 2:58

GoogleCodeExporter commented 9 years ago
Well, what happens if you type ls?
Does touch ./foo work?

Original comment by dave.sto...@gmail.com on 17 Oct 2010 at 3:00

GoogleCodeExporter commented 9 years ago
ls command works, but foo doen't get created
touch ./foo gives same error as touch foo

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 3:03

GoogleCodeExporter commented 9 years ago
not even "> foo" ? (without quotes)

Original comment by dave.sto...@gmail.com on 17 Oct 2010 at 3:06

GoogleCodeExporter commented 9 years ago
> not even "> foo" ? (without quotes)
gives error `-sh: foo: operation not permitted'

outside /var/mobile everything seems to work fine, error only occurs in 
/var/mobile and subdirectories (like /var/mobile/Media)

I get the same errors if i try it as root

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 3:10

GoogleCodeExporter commented 9 years ago
-sh: Does it work with bash?

Original comment by dave.sto...@gmail.com on 17 Oct 2010 at 3:12

GoogleCodeExporter commented 9 years ago
nope, same error with bash: `bash: foo: operation not permitted'

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 3:15

GoogleCodeExporter commented 9 years ago
could it be that foo is a command?

Have you tried something like touch terminaltest yet?

Original comment by dave.sto...@gmail.com on 17 Oct 2010 at 3:31

GoogleCodeExporter commented 9 years ago
touch /var/foo works (as root)
touch /var/mobile/foo fails (as root and as mobile)
touch terminaltest also fails

touch /foo (as mobile) gives error "touch: cannot touch `foo': permission 
denied" (as expected)
touch /var/mobile/foo fails (as mobile) results in "touch: setting time of 
`foo': No such file or directory" (different error message!) 

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 3:40

GoogleCodeExporter commented 9 years ago
Oh and: I just downloaded the Terminal-472.zip from 
http://code.google.com/p/mobileterminal/downloads/list, unzipped it, got 
Terminal.app and dragged-and-dropped that into iTunes. Did I miss some 
mandatory installation steps?

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 3:43

GoogleCodeExporter commented 9 years ago
Yeah, I'm afraid itunes won't sync that

You have to install it manually

Original comment by dave.sto...@gmail.com on 17 Oct 2010 at 3:48

GoogleCodeExporter commented 9 years ago
Can't get it to work. iFile can create, change, and delete files in 
/var/mobile/, if I ssh into it i can also create, change, and delete files. 
From inside MobileTerminal i get the error. Also (maybe unrelated):

From inside MobileTerminal:
iPhone-4:/var/mobile root# ping google.com
ping: ping must run as root
iPhone-4:/var/mobile root# whoami
root
iPhone-4:/var/mobile root#

From another computer:
0, ~ $ ssh mobile@192.168.2.114
mobile@192.168.2.114's password: 
iPhone-4:~ mobile$ ping google.com
PING google.com (209.85.135.104): 56 data bytes
64 bytes from 209.85.135.104: icmp_seq=0 ttl=56 time=29.536 ms
64 bytes from 209.85.135.104: icmp_seq=1 ttl=56 time=28.159 ms
64 bytes from 209.85.135.104: icmp_seq=2 ttl=56 time=27.045 ms
c64 bytes from 209.85.135.104: icmp_seq=3 ttl=56 time=27.795 ms
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 27.045/28.134/29.536/0.904 ms
iPhone-4:~ mobile$  

I'm giving up for now. Let me know if I can give you any further information on 
the error.

Original comment by Aleksej....@gmail.com on 17 Oct 2010 at 4:13

GoogleCodeExporter commented 9 years ago
I believe the problem is that you can't simply install mobileterminal from 
iTunes.  You need to copy it to /Applications/ yourself.

Original comment by allen.po...@gmail.com on 22 Nov 2010 at 2:26

GoogleCodeExporter commented 9 years ago
allen, just tried that an got it to work. thanks.

Original comment by Aleksej....@gmail.com on 3 Dec 2010 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by allen.po...@gmail.com on 4 Dec 2010 at 6:12