LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2003, 04:48 AM   #1
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Angry 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

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

Last edited by Evilone; 01-14-2003 at 04:51 AM.
 
Old 01-14-2003, 11:52 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
1) what does the log say? and 2) you did make the /etc/ftpusers.db did you?
 
Old 01-14-2003, 12:14 PM   #3
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
Whats etc/ftpusers.db???

I never came across that one?
 
Old 01-14-2003, 12:18 PM   #4
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
All i've done is compiled, built proftpd.conf
and edited etc/pam.d/ftp (had to create that one)
 
Old 01-14-2003, 12:20 PM   #5
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
Logs say connection refused, nothing more than that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to setup proftpd newbie007007 Linux - Networking 1 12-14-2004 02:08 PM
PROFTPD setup and config HOWTO webshark Linux - Software 0 11-09-2004 08:37 PM
how do you setup users on ProFTPD? ShawnD Linux - Software 22 08-01-2002 09:33 AM
ProFtpd setup question rlkiddjr Linux - Networking 6 03-09-2002 07:49 PM
proFTPd woe setup Electro Linux - Networking 1 02-19-2002 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration