LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Proftpd Setup Help (https://www.linuxquestions.org/questions/linux-networking-3/proftpd-setup-help-41408/)

Evilone 01-14-2003 04:48 AM

Proftpd Setup Help
 
I've installed proftpd as a standalone server. And made sure it installed in /sw/proftpd-1.2.7/

I did'nt enable shadow passwords from ./configure as i've only come across one place that says to do it, the rest dont. No additional parameters were passed on setup, just enough to install where i wanted it.

I need to access /ftproot/pub using the users ade and lizzy and their respective passwords (normal users), no anonymous and just that folder.

I modified the /etc/pam.d/ftp file as shown in the README.PAM file as follows (this is the complete file) :

#%PAM-1.0
auth required /lib/security/pam_listfile.so item=user sence=deny
file=/etc/ftpusers onerr=succeed
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
session required /lib/security/pam_pwdb.so

And then modified proftpd.conf as follows (again this is complete) :

ServerName "LizzynNarn FTP"
ServerAdmin ade_wright@btinternet.com
ServerType standalone
Defaultserver on
Port 21
SystemLog /sw/proftpd1.2.7/logs/syslog.log
TransferLog /sw/proftpd1.2.7/logs/xferlog.log
MaxInstances 30
DeferWelcome on
MaxLoginAttempts 3
User proftpd
Group proftpd

<Global>
AccessGrantMsg "Welcome To The Penguins Lair %u"
DisplayConnect /sw/proftpd1.2.7/welcome.msg
IdentLookups off
DefaultRoot /ftproot/pub
AllowOverwrite yes
DenyFilter '%'
DenyFilter \*.*/
Umask 022
</Global>

<Limit LOGIN>
order Allow,Deny
AllowUser ade
AllowUser lizzy
Deny from all
</Limit>

Thats it really, i can ftp to it but it will not allow me in, either as the 2 specified users or anon??? What did i miss?? I know its somthing silly now, but can't see what. The 2 users are members of a group called HOME and the ftproot/pub folders are set to write for the group home and owned by root.


Thanks,

Ade :Pengy:

Edit - It's a Redhat 8 box btw !!!

unSpawn 01-14-2003 11:52 AM

1) what does the log say? and 2) you did make the /etc/ftpusers.db did you?

Evilone 01-14-2003 12:14 PM

Whats etc/ftpusers.db???

I never came across that one?

Evilone 01-14-2003 12:18 PM

All i've done is compiled, built proftpd.conf
and edited etc/pam.d/ftp (had to create that one)

Evilone 01-14-2003 12:20 PM

Logs say connection refused, nothing more than that


All times are GMT -5. The time now is 06:55 PM.