LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2006, 08:44 AM   #1
rsdunker
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
ftp server CWD error


I keep getting a "invalid command" when attempting to CWD on my ftp server. I have tried both vsftpd and proftpd and get same results. I am running SuSE 10.0. I have installed and used proftpd several times in the past without this problem and have finally run out of ideas. Thanks for any help.
 
Old 01-17-2006, 10:58 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Are you sure the problem is not due to the client? Like a winblows client?
If yo have access to the FTP command QUOTE, then send a direct command to the server to be sure that it does not come from the client
Code:
220 not.your.business.com FTP server (Version 6.5/OpenBSD, linux port 0.3.2) ready.
Name (not.your.business.com:nx): nx
331 Password required for nx.
Password:
230 User nx logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote cwd
250 CWD command successful.
ftp> quit
edit: I remembered I had a proftpd running on my own machine.

Code:
nx@Debian:~$ ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.2.10 Server (Debian) [127.0.0.1]
Name (localhost:nx): nx
331 Password required for nx.
Password:
230 User nx logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> CWD
?Invalid command
ftp> help
Commands may be abbreviated.  Commands are:

!               debug           mdir            qc              send
$               dir             mget            sendport        site
account         disconnect      mkdir           put             size
append          exit            mls             pwd             status
ascii           form            mode            quit            struct
bell            get             modtime         quote           system
binary          glob            mput            recv            sunique
bye             hash            newer           reget           tenex
case            help            nmap            rstatus         tick
cd              idle            nlist           rhelp           trace
cdup            image           ntrans          rename          type
chmod           lcd             open            reset           user
close           ls              prompt          restart         umask
cr              macdef          passive         rmdir           verbose
delete          mdelete         proxy           runique         ?
ftp> rhelp
214-The following commands are recognized (* =>'s unimplemented):
214-CWD     XCWD    CDUP    XCUP    SMNT*   QUIT    PORT    PASV
214-EPRT    EPSV    ALLO*   RNFR    RNTO    DELE    MDTM    RMD
214-XRMD    MKD     XMKD    PWD     XPWD    SIZE    SYST    HELP
214-NOOP    FEAT    OPTS    AUTH    CCC*    CONF*   ENC*    MIC*
214-PBSZ    PROT    TYPE    STRU    MODE    RETR    STOR    STOU
214-APPE    REST    ABOR    USER    PASS    ACCT*   REIN*   LIST
214 Direct comments to root@localhost.localdomain
ftp> quote CWD ~root
250 CWD command successful
ftp> cd ~root
250 CWD command successful
ftp> bye
221 Goodbye.
Using "help" you see that linux ftp does not know CWD but knows CD (which is translated as CWD ftp-command)
Using "rhelp" , which sends list of known command by the server, you see that it understands ftp-command CWD
Forcing a command to be sent to the server with quote , it works.

So you should use cd

Last edited by nx5000; 01-17-2006 at 11:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 06:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
How do I unpack _all_ tarballs in cwd? SBing Linux - General 2 06-27-2004 09:04 AM
ftp-server error when downloading rpm's Mikessu Mandriva 2 09-18-2003 07:46 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration