Re: nonymous ftp on linux - revised

Bob Luckin <[email protected]> Tue, 19 Sep 2006 14:07:31 -0500
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
Richard,

You seem to have forgotten to paste the error message into your email...

The extra two files, . and .., are really the current and parent directories.
It appears that the ls command being executed on the Linux box is being
executed with with the "-a" option, so it is showing files which begin with a
dot.

Offhand, I wouldn't expect this to cause the problem, though.

Both the Linux and Solaris man pages I've seen recommend ~ftp should be owned
by root and unwriteable by anyone, but on the Linux box at least it seems to
be owned by ftp.  My understanding is that this is not secure, although it
may not be the cause of your problem...

The Solaris man page also recommends ~ftp/pub should be owned by root, with
permissions 755.  Not sure if the same is true for Linux.  Again, my
understanding is that it should not be owned by ftp for security reasons.

These changes may or may not solve your problem, but without the error
message it's difficult to know the problem is.

Have you tried connecting by a command-line interface and seeing if the
file transfer works that way ?  If so, it could be related to the commands the
browser interface is issuing when you drag and drop.

Cheers, Bob

On Tue, Sep 19, 2006 at 08:36:19AM -0500, Richard Beaver wrote:
> Here is the revised fact/question that I should have began with. Sorry.
> We recently switched our FTP service from Unix to Linux. When I use 
> anonymous FTP through a browser interface, I can see all the files that 
> are setup for use. However, when I go to drag any file into the Pub 
> folder, I receive the following message..
> 
> 
> In comparing the folders on the Unix machine with the Linux machine, I 
> see the same permissions on each machine(shown below), but I see an 
> extra two files on the Linux machine. In the Linux password file, I do 
> see FTP as a user and it is setup the same on both machines.
> Unix machine -
> -rw-r--r--   1 root       sys            668 Mar 30  2001 .loginmsg
> -rw-r--r--   1 root       sys            500 Mar 30  2001 .remloginmsg
> -rw-r--r--   1 root       sys            707 Aug 21 10:02 .zz1
> -rw-r--r--   1 root       sys            115 Aug 21 10:02 .zzdirs
> dr-xr-xr-x   2 root       sys             96 Dec  4  2002 bin
> dr-xr-xr-x   2 root       sys             96 Oct 29  2002 etc
> drwxr-sr-x  10 ftp        root          4096 Aug 24 02:55 pub
> drwxr-xr-x   3 root       sys             96 Dec  4  2002 usr
> 
> Linux machine -
> dr-xr-xr-x    6 ftp  guest  4096 Aug 21 10:02 .
> drwxr-xr-x  570 root root  12288 Sep 19 07:54 ..
> -rw-r--r--    1 root sys     668 Mar 30  2001 .loginmsg
> -rw-r--r--    1 root sys     500 Mar 30  2001 .remloginmsg
> -rw-r--r--    1 root sys     707 Aug 21 10:02 .zz1
> -rw-r--r--    1 root sys     115 Aug 21 10:02 .zzdirs
> dr-xr-xr-x    2 root sys    4096 Dec  4  2002 bin
> dr-xr-xr-x    2 root sys    4096 Oct 29  2002 etc
> drwxr-sr-x   10 ftp  root   4096 Sep  7 13:12 pub
> drwxr-xr-x    3 root sys    4096 Dec  4  2002 usr
> 
> Other than my lack of experience on FTP and Linux, what can the problem be?
> 
> Thanks,
> Richard
> 

-- 
Bob Luckin      [email protected]      "Coder, adapt; FTP Ada, redo C"