amersons / swiftp

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

2.2 FroYo with 1.23 SwiFTP causes chroot violation #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install 2.2/FroYo (mine was a press handset so it was legit OTA)
2. Config SwiFTP for your network and user login settings
3. Connect with a FTP client to the phone (using Cyberduck on Mac)

What is the expected behavior? What do you see instead?
Proper directory list or connection and transfers.
Instead an immediate "invalid name or chroot violation occurs"
Clicking try agin sometimes works.
File transfers also yield this:

220 SwiFTP 1.23 ready
USER user
331 Send password
PASS ********
230 Access granted
FEAT
211-Features supported
 UTF8
211 End
OPTS UTF8 ON
200 OPTS accepted
CWD /
550 Invalid name or chroot violation
QUIT
221 Goodbye

What version of SwiFTP are you using?
1.23

What operating system are you using?
2.2

Which FTP client are you using?
Cyberduck

Which Android device do you have (Nexus, Droid, Hero, G1, etc.)?
Nexus One

May we contact you by email to ask questions? If so, what is your email
address?
Sure, use the email in my profile

Please provide any additional information below.

Original issue reported on code.google.com by npand...@gmail.com on 26 May 2010 at 4:51

GoogleCodeExporter commented 9 years ago
I have the same problem with Froyo. Tried with ftp, curlftpfs, Nautilus and 
Opera on 
Ubuntu. I can list the files on the sdcard, but not in any subdirectory and I 
can't 
access any files.

Original comment by trygv...@gmail.com on 26 May 2010 at 9:13

GoogleCodeExporter commented 9 years ago
same problem here as well, with Froyo

Original comment by dhimiter@gmail.com on 28 May 2010 at 2:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
try changing "stay within folder" in the setup to just "/" Worked out for me.

Original comment by jaybart...@gmail.com on 1 Jun 2010 at 1:31

GoogleCodeExporter commented 9 years ago
Thank you jaybartolo worked nicely for me "/" solution 

Original comment by mudr...@gmail.com on 2 Jun 2010 at 4:17

GoogleCodeExporter commented 9 years ago
I'll be able to fix this as soon as my Droid gets the 2.2 upgrade. Or someone 
mails
me a Nexus One :)

Original comment by Dave.Revell@gmail.com on 6 Jun 2010 at 3:06

GoogleCodeExporter commented 9 years ago
Thanks jaybartolo; that fixed the issue for me as well.

Original comment by jbow...@gmail.com on 8 Jun 2010 at 9:30

GoogleCodeExporter commented 9 years ago
jaybartolo you are the man.. i thought i would have to deal with this until the 
official 2.2 came out for the droid.. now i have froyo and the 1 app that didnt 
work, thank you..

Original comment by viper1...@gmail.com on 8 Jun 2010 at 6:16

GoogleCodeExporter commented 9 years ago
You guys rule.  Had the same problem, and a quick search led me here.  Thanks!!

Original comment by PhilHam...@gmail.com on 8 Jun 2010 at 11:50

GoogleCodeExporter commented 9 years ago
jaybartolo - you saved my butt from much frustration - THANKS!

Original comment by CraigCC...@gmail.com on 12 Jun 2010 at 6:59

GoogleCodeExporter commented 9 years ago
I have tried changing "stay within folder" in the setup to "/mnt/sdcard"
and Now worked.
Hopes help all other here.

Original comment by jasonip...@gmail.com on 18 Jun 2010 at 2:37

GoogleCodeExporter commented 9 years ago
Hey guys thanks alot, I finally installed froyo last night and I thought i 
wasn't going to be able to use my favorite app!!!

Original comment by argeli...@gmail.com on 21 Jun 2010 at 12:26

GoogleCodeExporter commented 9 years ago
Thank u very much! The "/" solution worked just fine for me too! =)

Original comment by orestak...@gmail.com on 23 Jun 2010 at 11:59

GoogleCodeExporter commented 9 years ago
have the same problem on a htc legend with 2.1 and mac running cyberduck , the 
"/" doesn't work.
I have been using swiftp on a previous legend with no problem..

Original comment by lucas.fr...@gmail.com on 23 Jun 2010 at 8:50

GoogleCodeExporter commented 9 years ago
I'm also using Cyberduck and fine with FroYo and setting to /

BTW: if you aren't rooted / MAY not work for you.  Use a file explorer and find 
out the name of the memory storage that is used and replace that in /

May be an issue right now for internal storage phones

Original comment by npand...@gmail.com on 23 Jun 2010 at 9:07

GoogleCodeExporter commented 9 years ago
after uninstall and install again , it seems to work fine now...

Original comment by lucas.fr...@gmail.com on 24 Jun 2010 at 3:22

GoogleCodeExporter commented 9 years ago
thank you very much jasonip312! changing "stay within folder" setting to 
"/mnt/sdcard" works!

Original comment by tnxst...@gmail.com on 16 Jul 2010 at 4:47

GoogleCodeExporter commented 9 years ago
thx to all 
setting to "/mnt/sdcard" works!!!

Original comment by Go3tt3rb...@gmail.com on 24 Jul 2010 at 7:15

GoogleCodeExporter commented 9 years ago
Confirming this issue with FroydVillain on HTC Hero.

also confirming workaround with /mnt/sdcard fixes this.

/sdcard is just symlink anyway:
# ls -l /
lrwxrwxrwx    1 root     root            11 Aug 14 15:15 sdcard -> /mnt/sdcard

Logcat:
I/class org.swiftp.CmdCWD( 8124): Path violated folder restriction, denying
I/class org.swiftp.CmdCWD( 8124): 550 Invalid name or chroot violation

Original comment by Pitli...@gmail.com on 15 Aug 2010 at 3:24

GoogleCodeExporter commented 9 years ago
Using Moto Milestone (Droid) with Android 2.1
Had to set "stay within folder" to "/sdcard" and now everything works fine.

Original comment by vlad.obada on 26 Aug 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Confirming, the stay within "/" did not work for me but "/mnt/sdcard" DID work 
with Moto Droid 2.2 (Froyo) (Using SwiFTP Server 1.24)

Original comment by fabioqa on 27 Aug 2010 at 11:29

GoogleCodeExporter commented 9 years ago
Stay within "/" worked for my unrooted HTC Desire.

Original comment by bste...@gmail.com on 29 Aug 2010 at 1:23

GoogleCodeExporter commented 9 years ago
With only "/" it works fine, but hope you can fix that.

I got a problem when I saying "mget *.jpg"
(NLST does not support wildcards)

Will try Google it, but now you know :)

Original comment by kimeg...@gmail.com on 8 Sep 2010 at 2:00

GoogleCodeExporter commented 9 years ago
Hey jasonip312 that "/mnt/sdcard" fixed it for me, thanks...

Original comment by the...@gmail.com on 16 Sep 2010 at 12:53

GoogleCodeExporter commented 9 years ago
Thanks jasonip312, that worked for me! -- "I have tried changing "stay within 
folder" in the setup to "/mnt/sdcard"
and Now worked.
Hopes help all other here."

Much Appreciated,
Ron

Original comment by ronshind...@gmail.com on 20 Sep 2010 at 1:20

GoogleCodeExporter commented 9 years ago
"/" worked on my Motorola Droid .. thx

Original comment by tnoar...@gmail.com on 26 Sep 2010 at 11:01

GoogleCodeExporter commented 9 years ago
"/mnt/sdcard" fixed it for me too, thanks...

Original comment by nolwenn....@gmail.com on 1 Nov 2010 at 12:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Galaxy S. Froyo JPO JPM
"/mnt/sdcard" fixed it for me too, thanks...

Original comment by paul44.l...@gmail.com on 6 Nov 2010 at 11:49

GoogleCodeExporter commented 9 years ago
Nexus One, Froyo 2.2
changing "stay within folder" setting to "/mnt/sdcard"

That fixed it!  Thanks!

Original comment by UnrealSt...@gmail.com on 12 Nov 2010 at 4:48

GoogleCodeExporter commented 9 years ago
-EVO 4G - Fresh ROM 3.4.0.1
-SwiFTP Server 1.24
-Connecting from Ubuntu 10.04 - Filezilla 3.3.1

Changing "stay within folder" setting to "/mnt/sdcard"

Fixed it for me! :)

Original comment by aaronlease on 12 Nov 2010 at 5:12

GoogleCodeExporter commented 9 years ago
Desire HD, stock with Froyo 2.2
Works with /mnt/sdcard - shouldn't this be handled better? I can imagine only a 
small percentage bothering to try to find the fix on this site - the problem 
has been around for many months now!

Original comment by espen.la...@gmail.com on 18 Nov 2010 at 7:11

GoogleCodeExporter commented 9 years ago
just want I wanted /mnt/sdcard , works perfect
Hopefully the dev can build SFTP into this as well :)

thanks Comment 11 by jasonip312

Original comment by sullys...@gmail.com on 22 Nov 2010 at 11:10

GoogleCodeExporter commented 9 years ago
I have Samsung Galaxy Tab with Antroid 2.2
connecting from Windows7 explorer,Speedcommander and Filezilla 3.2.7.1

Changing "stay within folder" setting to "/mnt/sdcard"

works fine!

Original comment by lorenz.l...@gmail.com on 29 Nov 2010 at 2:27

GoogleCodeExporter commented 9 years ago
same problems 160 error when I want to upload files to swiftp or download from 
- HTC Desire HD android 2.2
- Mac OSX 10.6.5
- Transmit 4 ftp client by Panic Software

it seems i have any permissions

Original comment by sebco...@gmail.com on 30 Nov 2010 at 1:07

GoogleCodeExporter commented 9 years ago
setting to "/mnt/sdcard" works!!!

thank all above

Original comment by romca...@gmail.com on 14 Dec 2010 at 8:39

GoogleCodeExporter commented 9 years ago
Hi folks,
HTC Legend with Froyo v3.14.177.1
I changed the "stay within folder" setting inside the setup from the old 
version "/sdcard" to "/mnt/sdcard" and this worked! Without the "" of course ;)
Thank you guys!

Original comment by edwinbub...@gmail.com on 17 Dec 2010 at 12:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I fixed this problem by moving SwiFTP Server 1.24 from the sd card back to the 
phone in setup/applications.
HTC Desire CM6.1.1

Original comment by weedac...@gmail.com on 30 Dec 2010 at 6:19

GoogleCodeExporter commented 9 years ago
Solution mnt/sdcard/ worked for me!!!!!
Thanks jasonip312

Original comment by AjeskS...@gmail.com on 8 Feb 2011 at 6:26

GoogleCodeExporter commented 9 years ago
ok this works for me to...but I want to send files to /extsd instead and I cant 
do that with /mnt/extsd ....any tips? or if i send them to /mnt/sdcard how do i 
move them to extsd?

thanks

Original comment by smithbor...@gmail.com on 2 May 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Changed to "mnt/sdcar/" and now it's working fine.

Thank you guys

Original comment by francesc...@gmail.com on 16 Jun 2011 at 1:39

GoogleCodeExporter commented 9 years ago
The "/" modification didn't work for me. But "/mnt/sdcard" did. Thanks to all 
the inputs in this forum, I was saved from unistalling one of my favourite apps 
:) 

Original comment by alamtiw...@gmail.com on 11 Jul 2011 at 2:46

GoogleCodeExporter commented 9 years ago
'/mnt/sdcard' worked for me as well where '/' didn't. (T-Mobile G2 on 2.2)

Original comment by jlatime...@gmail.com on 16 Jul 2011 at 3:22

GoogleCodeExporter commented 9 years ago
same as above "stay within folder" / work but /sdcard don't work (can't upload 
file/enter directory/refresh)

Original comment by khng.em...@gmail.com on 23 Jul 2011 at 3:29

GoogleCodeExporter commented 9 years ago
/mnt/sdcard was the only working solution for me

Original comment by ahve...@gmail.com on 28 Jul 2011 at 8:04

GoogleCodeExporter commented 9 years ago
i'm using Samsung I9000 Darky rom v10. "Stay within folder" set to / is working 
like charm.

Original comment by Otheb.H...@gmail.com on 2 Aug 2011 at 7:44

GoogleCodeExporter commented 9 years ago
I'm using Samsung Galaxy S2 I9100 ROM OFFICIAL BR. The alternative 
"/mnt/sdcard" is the only working solution.

Original comment by evand...@gmail.com on 18 Aug 2011 at 2:56

GoogleCodeExporter commented 9 years ago
Samsung Galaxy S2 on AT&T.

/mnt/sdcard works like a champ. Thanks. 

Original comment by gumb...@gmail.com on 11 Oct 2011 at 3:12