LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Proftpd (https://www.linuxquestions.org/questions/linux-software-2/proftpd-68704/)

bnumark 06-28-2003 04:26 PM

Proftpd
 
i just installed proftpd like 10 times an i always get connection refused. i even switched to mand. to get it to work and still it says connection refused when i try to connect to my lan ip. Does any 1 kno anything?

DrOzz 06-28-2003 04:26 PM

did you configure it? or did you just start it and figured it would work?

bnumark 06-28-2003 04:40 PM

i just installed mandy, turned the computer on and tried to see if it would work. What do i need to configure?

MasterC 06-28-2003 05:04 PM

You need to configure your /etc/proftpd.conf file, and actually, for the most part, it just might work out of the box.

Post up yours so we can see if there is anything wrong. Also, give us some info on your system.

First try ftping to the box from the box by opening up a console and typing:
ftp localhost

That will tell you whether it's even running or not. If not, you've got to read your documentation on how to start it, or just try:
whereis proftpd
Notice the location, something like /sbin/proftpd then:
/sbin/proftpd (as root)

Cool

bnumark 06-28-2003 05:25 PM

[root@localhost root]# ftp localhost
ftp: connect: Connection refused
ftp>

proftpd: /usr/sbin/proftpd /etc/proftpd.conf /etc/proftpd.conf~ /usr/share/man/man8/proftpd.8.bz2
[root@localhost root]#

im runing a 1 day old dell server, 2.4GHz
Mandy 9.1 Connection, cable

If some 1 that knows something about my prob. pm me and i will give u access to my server to see if u can see wuts wrong

DrOzz 06-28-2003 05:28 PM

ok i can somewhat see what your trying to do, so if you did indeed make an account for the ftp server then you can try to type "ftp" and prompt
and then type "open 127.0.0.1" or "open <your-external-ip-here>
and then log in with the username and password and see if it works?

MasterC 06-28-2003 05:29 PM

PM's are only allowed for contributing members but I'll send you an email.

Anyway, post up your /etc/proftpd.conf file and also try:
/usr/sbin/proftpd
And then try:
ftp localhost
Again.

Cool

bnumark 06-28-2003 05:33 PM

# This is a basic ProFTPD configuration file (rename it to
'proftpd.conf' for actual use. It establishes a single server# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "192.168.1.201"
ServerType standalone
DefaultServer on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on

# Port 21 is the standard FTP port.
Port 2121

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

# 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 under which the server will run.
User nobody
Group nogroup

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

# Needed for NIS.
PersistentPasswd off

# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/tyler

bnumark 06-28-2003 05:41 PM

[root@localhost root]# cd /usr/sbin
[root@localhost sbin]# ./proftpd

- Fatal: unknown configuration directive ''proftpd.conf'' on line 2 of '/etc/proftpd.conf'.
[root@localhost sbin]#
[root@localhost sbin]#

bnumark 06-28-2003 05:48 PM

oki fixed it
it works like a charm yay :D

bnumark 06-28-2003 05:58 PM

2 more ?s regarding proftpd

How can i make quotas? and how can i make it so users cant go into other dir other than their home dir?

MasterC 06-28-2003 06:56 PM

Forcing users into their home directory add this entry:
DefaultRoot ~

To force users into a specific directory:
DefaultRoot /path/to/specific/directory

Cool

bnumark 06-28-2003 07:04 PM

to where?

MasterC 06-28-2003 07:26 PM

/etc/proftpd.conf

:)

I put it just below the DefaultServer entry.

Cool

ksoma 06-28-2003 07:29 PM

Hey bnumark, how did you end up getting your proftp to work?...I got rid of the fatal errors...but I'm still getting "421 Service not available". Thanks.

-Keerthan


All times are GMT -5. The time now is 10:59 PM.