Koozali.org: home of the SME Server

FTP again

Offline ElFroggio

  • *
  • 262
  • +0/-0
FTP again
« on: December 19, 2007, 03:47:22 AM »
Hi,

I am trying to setup FTP for a user.

1. Firewall does NAT to the SME box [setup as stand alone server].
2. Created new user: abcdefgh with password 12345678
3. config show ftp
    ftp=service
    LoginAccess=public
    TCPPort=21
    access=public
    status=enabled
3. I have checked: http://wiki.contribs.org/FTP_Access_to_Ibays
4. I have also checked the forums. I have installed the user-remote-access panel, set the chroot path to: /home/e-smith/files/users/abcdefgh/home

Problems:
1. I can log on from the inside network, but I can't upload.
2. From outside, I get the login prompt, it does ask for username and password [therefore the NAT on the firewall did it's job], but that's it and times out.

Any suggestion on what else I can do?

Thanks

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: FTP again
« Reply #1 on: December 19, 2007, 06:21:09 AM »
Quote
1. I can log on from the inside network, but I can't upload.
According to this section of the manual: http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter14#Accessing_the_i-bays, you cannot upload to an i-bay if you connect using the ibay name.  You must configure the ibay with read/write *group* permissions, then add users to that group.

According to the howto you referenced, *all* group names are automatically added to /etc/ftpusers, and therefore denied access to ftp.

Quote
2. From outside, I get the login prompt, it does ask for username and password [therefore the NAT on the firewall did it's job], but that's it and times out.
You'll get this if you're logging in from off-site from a *remote* system that doesn't have a public IP and whose router does not automatically support FTP.  FTP is a weird protocol - download SmartFTP and try both "active" and "passive" mode from your remote system.