jacos15 / swiftp

Automatically exported from code.google.com/p/swiftp
GNU General Public License v3.0
0 stars 0 forks source link

Ask for root on rooted devices #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set root dir to /
2. try to access /data
3.

What is the expected behavior? What do you see instead?
I should get a listing of the content of the /data folder, instead, I get
"result is 550 That path is inaccessible"

What version of the product are you using?
1.11

What operating system are you using?
XP

What FTP client are you using?
filezilla 3.2.4.1

What do the server log and session monitor say around the time that the
error occurs?
nothing is output in the log

Please provide any additional information below.
/data is just an example, a bunch of other folders are inaccessible

Original issue reported on code.google.com by stane...@gmail.com on 17 Jun 2009 at 3:08

GoogleCodeExporter commented 9 years ago
please correct the typo in the subject line, it should read "path is 
inaccessible"

Original comment by stane...@gmail.com on 17 Jun 2009 at 3:09

GoogleCodeExporter commented 9 years ago
I've reproduced this and it's real. The problem is that SwiFTP runs under an 
account
that has limited access to the filesystem. The example given by stanelie uses 
the
/data directory. 

To verify that it is a permission problem, I ran "cd /data ; ls" from a command
terminal, and saw the output "opendir failed, Permission denied." This implies 
to me
that user accounts don't have access to the /data directory.

So this isn't a SwiFTP bug, but an artifact of the Android security model as
implemented by T-Mobile (and possibly other providers).

Thanks to stanelie for filing a report.

Original comment by Dave.Revell@gmail.com on 17 Jun 2009 at 4:27

GoogleCodeExporter commented 9 years ago
I run a custom rooted rom. Other apps I have ask for root when launched, and I 
can
grant them that permission once or always at the push of a button. I think the
application has to try to run as root to trigger that behavior.

That option would be great!

Original comment by stanel...@gmail.com on 17 Jun 2009 at 4:33

GoogleCodeExporter commented 9 years ago
That's true, that would be great. I'll plan to implement running as root in 
SwiFTP
2.0, due in mid-July. Feel free to file other enhancement requests if you think 
of
anything else that would be neat.

Original comment by Dave.Revell@gmail.com on 17 Jun 2009 at 4:40

GoogleCodeExporter commented 9 years ago
Can't access the path in IE or Chrome. Each path name is displayed with a 
timestamp, 
for example, music is displayed as "12:34 music", if u click the url, it bring 
u to 
/sdcard/12:34 music/, not /sdcard/music, I must manually type the path name to 
access 
it.

Original comment by allenx...@gmail.com on 8 Sep 2009 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by Dave.Revell@gmail.com on 29 Sep 2009 at 10:03

GoogleCodeExporter commented 9 years ago
Changing to "won't fix", I decided I don't have time to investigate and 
implement
this, since the majority of users aren't running rooted ROMs. Sorry.

Original comment by Dave.Revell@gmail.com on 4 Jan 2010 at 7:48

GoogleCodeExporter commented 9 years ago
Root users, I have found the solution. Change your folder to /mnt/sdcard

Once I did that I have had NO problems. It runs slower than before I did the 
root (not by much tho, hardly noticeable), but I'm running on a G1 (sd card 
even has a swap partition) running Cyanogenmod 6 (android 2.2). I'm back to 
having full read write access to my sd card without having to turn off my swap 
(possibly causing a reboot), and plugging in to my computer to copy files to 
the SD.

Lastly, thank you for the awesome FTP server program. I have used it for as 
long as I can remember. Keep up the good work. Good luck root users!

Original comment by daijoubu...@gmail.com on 19 Sep 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Hi Dave,

this feature would be a great enhancement for swiftp.

I found the following description, that looked pretty straight&easy:
http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your
-app/ 

maybe you can rethink your decision?

thx,
c

Original comment by c.tea...@gmail.com on 23 Nov 2010 at 6:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@ daijoubu...@gmail.com

Can your further explain your solution? I dont have a /mnt folder.. and im not 
premitted to create one.

Original comment by jhk...@gmail.com on 17 Jan 2011 at 7:18