Link to home
Start Free TrialLog in
Avatar of dgarcia
dgarcia

asked on

FTP Linux server accessed from web browser

My FTP server works fine in general except when someone access it with a graphical web browser (instead of the normal ftp command). In this case, the contents of directories are not listed despite you can download the files if you know the full path&name.
 
If you want to take a look at it, the anonymous FTP server name is
      nikolai.ija.csic.es
You would see that accessing it with the command
      ftp nikolai.ija.csic.es
you can do ls, get, cd, etc, while accessing it with a web browser (netscape) to the address ftp://nikolai.ija.csic.es/ no directory tree will appear.
 
I really can't manage with this trouble. I took a look at ftpaccess but didn't know what to do. Permisions in FTP home are read for everybody.  :-(

Any help will be great!
Thanks
Avatar of bkc
bkc

I logged into your system as an anonymous user with a command-line FTP client.

a LIST command produces NO OUTPUT.

I suspect that you do not have the directory ownership set correctly on your server.

/etc/ftpaccess controls only part of the security aspects.

The directory rights are also only part of the issue. You said everyone has read access, but if the 'owner' or 'group' do not
have read access, and the 'anonymous user' is the owner or in the group, the rights you've assigned to 'everyone' will not apply
to the anonymous user.


ASKER CERTIFIED SOLUTION
Avatar of nicademus
nicademus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your ftp daemon does not allow passive mode.  Enabling this could well be worth a try.
Avatar of dgarcia

ASKER

To Nicademus:
Thanks a lot before starting. Despite your question was very well exposed, I'm still trying. My ftpaccess seems to be ok (same as yours but changing the directory names in it). I have two doubts:
1) does the ftp directory tree have to be owned by root (as you said) or could it also be owned by ftp. Anyway, i tried both possibilities and nothing changed.
2) What do you mean with "make sure that your FTPD is appropriately set up".
 
To everybody:
1) What does it mean and how can I switch on the "passive ftp mode".
2) Somebody said that i should put a copy of the 'ls' command in my ftp/bin/. Is it necessary? Anyway, I also tried that and still it didn't work.

Sense of humour is the last thing to loose.  )8-D
We'll get back to you...funny man....=)  I gotta think back as to why mine wasn't working some time back, when I first installed this Slakware CD set....
Avatar of dgarcia

ASKER

Still, I want to insist in the fact that *sometimes* you can do an ls when connecting via the manual ftp command. Examples:

1) from another AIX terminal to which i have access, you can connect and do 'ls', but you can't do 'ls -l' or 'dir' (you don't have an error, but there is no output except "PORT command successful; Opening ASCII...; Transfer complete.").

2) from the same AIX-IBM machine but connected as a local user of my problematic linux server (not as 'anonymous') you CAN do 'ls', 'ls -l' (with the same output as entered from the command line ls), 'dir' & whatever.  

3) from the linux server itself, you can connect as anonymous to the ftp server but there is no way to do neither ls NOR ls -l NOR dir.

etc...

I start to think about reviewing the difficulty rate of this question.

If you prefer e-mail contact: dgarcia@ija.csic.es
Avatar of dgarcia

ASKER

Still, I want to insist in the fact that *sometimes* you can do an ls when connecting via the manual ftp command. Examples:

1) from another AIX terminal to which i have access, you can connect and do 'ls', but you can't do 'ls -l' or 'dir' (you don't have an error, but there is no output except "PORT command successful; Opening ASCII...; Transfer complete.").

2) from the same AIX-IBM machine but connected as a local user of my problematic linux server (not as 'anonymous') you CAN do 'ls', 'ls -l' (with the same output as entered from the command line ls), 'dir' & whatever.  

3) from the linux server itself, you can connect as anonymous to the ftp server but there is no way to do neither ls NOR ls -l NOR dir.

etc...

I start to think about reviewing the difficulty rate of this question.

If you prefer e-mail contact: dgarcia@ija.csic.es
Avatar of dgarcia

ASKER

hotlava, how do i "enable the passive mode" of my ftp deamon?