l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Sep 16 12:18

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Odd ncftp bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Odd ncftp bug

On Tue, Sep 16, 2003 at 11:35:54AM -0700, p@dirac.org wrote:
<snipped: my long original question trimmed to save bandwidth>
< see web archived version at:
  http://www.lugod.org/mailinglists/archives/vox-tech/2003-09/msg00082.html >
> sure.  this is off the top of my head:
> 1. http://bugs.debian.org

$ cat /etc/issue.net
Red Hat Linux release 8.0 (Psyche)
Kernel \r on an \m


> 2. http://www.ncftp.com

Unfortunately, I poked around the changelog for the NcFTP client,
and saw nothing relating to this bug.

> 3. http://google.com
> 4. http://www.google.com/advanced_group_search?hl=en

Hehe... I often find humans with similar problems are quicker than
Google. :)

I did just spend 10 minutes googling for keywords like "ncftp",
"password", "bug", "ftp://user@pass -wget" (lest you get 100 tutorials
on how to use 'wget' with FTP urls :) ), etc.

No luck so far. :^(

> 5. ncftp> debug1
>    ncftp> open (whatever)

I tried that, and didn't get much useful debuggng info. :^)

  $ ncftp
  ncftp> debug
  ncftp> open ftp://user:pass@ftp.server.com

  [server details]
  [welcome message]

  220: ftp.server.com NcFTPd Server (free personal license) ready.
  [welcome message again]

  Connected to ftp.server.com
  331: User USER okay, need password.
  Cmd: PASS xxxxxxxx
  530: Login incorrect
  Login incorrect
  Cmd: QUIT
  221: Goodbye
  Could not open host ftp.server.com: username and/or password was not accepted
  for login

  ncftp> _

D'oh :^/

> 6. strace -o LOG ncftpget -R ftp://USER:"PASSWORD"@ftp.server.com

Ah-hah!  Someone, somewhere, is using "%" as an escape character!

Based on the debug attempt above (where I was doing the "open" command
within NcFTP client, and not on the command-line in the Bash shell),
it looks like NcFTP itself is doing this.

I'll have to see if I can get around those "%" characters by
escaping them myself, somehow.

Thanks! :) :)  Good ol' strace. :)

> 7. ltrace -o LOG ncftpget -R ftp://USER:"PASSWORD"@ftp.server.com
> and if you can't resolve it in a few days, use reportbug.  :)

-bash: reportbug: command not found



bill@newbreedsoftware.com                           Got kids?  Get Tux Paint! 
http://newbreedsoftware.com/bill/       http://newbreedsoftware.com/tuxpaint/

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.