LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ftp server .... again (https://www.linuxquestions.org/questions/linux-software-2/ftp-server-again-47756/)

MasterC 03-02-2003 05:12 AM

Logging is with the entries:
SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

Change the paths/files to suite your needs.

I'm still leaning wayyy towards a port issue. Change the port, then ftp with:
ftp 1.2.3.4:8000 (assuming you change to port 8000)

Cool

MasterC 03-02-2003 05:14 AM

I use tcpd but that's just because I don't understand the inetd thing all that well and it works so I don't change it ;)

Cool

nautilus_1987 03-02-2003 05:20 AM

aha, how can I change port

MasterC 03-02-2003 05:27 AM

In your config file:
# Port 21 is the standard FTP port.
Port 21

Edit it:
# Port 21 is the standard FTP port.
Port 8000

Then kill/start it (or if you are using inetd HUP it)

Cool

nautilus_1987 03-02-2003 05:34 AM

Inetersting, where fron ProFTPd reads configuration:
fron /etc or /usr/local ?

MasterC 03-02-2003 05:38 AM

Depends on how you've installed it. I think if you go from source it's usr/local if you use slack's default it's /etc

I just tried connecting again, and got a better, but still failed response.... I was reading the RFC on the error (421) and it doesn't make any sense. I'd switch back to port 21 and we'll troubleshoot that out a different way.

Cool

nautilus_1987 03-02-2003 05:42 AM

some one can explain me the thing that when I do
ftp localhost - everything is fine
but when I do
ftp 213.226.176.220 - it sux?

Chad could you please post your config?

MasterC 03-02-2003 05:44 AM

Sure:
Code:

# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.

ServerName                      "ProFTPD MasterC Style"
#ServerType                    standalone
ServerType                      inetd
DefaultServer                  on
DefaultRoot                    ~

# Port 21 is the standard FTP port.
Port                            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                          022

#Passive FTP
PassivePorts                  60000 65535

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                          nogroup

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

SystemLog                      /var/log/proftpd.log
TransferLog                    /var/log/xferlog

# Normally, we want files to be overwriteable.
<Directory /*>
  AllowOverwrite                on
</Directory>

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous /home/ftp>
  RequireValidShell            off
  User                          ftp
  Group                        ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                    anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    100

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  .message
  DisplayFirstChdir            .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>

  # An upload directory that allows storing files but not retrieving
  # or creating directories.
#  <Directory incoming/*>
#    <Limit READ>
#      DenyAll
#    </Limit>
#
#    <Limit STOR>
#      AllowAll
#    </Limit>
#  </Directory>

</Anonymous>

Cool

MasterC 03-02-2003 05:46 AM

Quote:

Originally posted by nautilus_1987
some one can explain me the thing that when I do
ftp localhost - everything is fine
but when I do
ftp 213.226.176.220 - it sux?

Chad could you please post your config?

That's why I'm thinking it's a port thing. From inside your localhost (no port to enter from outside) it works. That means your server is running. Then, when you try from outside, using your IP (even though that is localhost, it's going out and back in) it's failing. Why? Because it can't get to your 'puter, why, well I'm guessing from a port being blocked. How? Hell if I know :D

Cool

nautilus_1987 03-02-2003 05:50 AM

(your logical explanations are great )
SO you server with your config works fine?

MasterC 03-02-2003 05:59 AM

Hmm, put it that way, and no it doesn't. :D Yes, it does work fine as far as proftpd is concerned, but no it doesn't work fine because I am having problems with PassiveFTP and my router. However, remove my router from the equation, and yes, my ftp works flawlessly. :)

Cool

MasterC 03-02-2003 06:22 AM

Well man, I am takin off too bed, it's just past 4AM here, and I'm about to drop dead. A few last minute advice(s):
Look at which conf file it's using. Modify that one. Make sure your port is open (run a port scan) and then make sure the server is running:
ps -aux

Good Luck

Cool

nautilus_1987 03-02-2003 06:22 AM

interresting, what will happen if I will make an FTP user with uid=50?
And is there some difference if I will use instead of:
User nobody
Group nogroup
:
User ftp
Group ftp

nautilus_1987 03-02-2003 06:26 AM

hehe sorry I forgot that we in deferent time zone :) hehe sorry
It's 14:22 :cool:

THNX alot Chad

MasterC 03-02-2003 04:15 PM

No, you want to start them as user/group nobody because those people don't actually exist on your system.

And I don't think it'd matter what uid your ftp user has. Instead, what is your home directory in /etc/passwd for your user 'ftp'?

Cool


All times are GMT -5. The time now is 10:38 AM.