Click to See Complete Forum and Search --> : ProFTPD and home directories
Subaquous
01-06-2001, 05:07 PM
I followd the NHF for ProFTPD, but was unable to login to my FTP site After I went through the NHF a couple of times to make sure that I did everything right, I noticed that in the proftpd.conf does not have a login directory; the NHF says that the default one that you make is /home/ftp. Is this why I can't login? And if so, what "format" would I use it add it?
Another thing, I have PMfirewall running, but opened up ports 20 and 21 for it. But I also have portsentry running and it drops all of the outside packets (using -stcp and -udp). Would I also have to loosen this up also?
sssadams
01-06-2001, 07:29 PM
I just read the NHF and its pretty good.What you may have to do is check /etc/passwd for your ftp entry...something like this
ftp:x:14:1::/home/ftp:/bin/false
also check your proftp.conf and see if your anonymous part looks like this
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
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 10
# We want 'welcome.msg' displayed at ogin, and '.message' displayed in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
I dont think the formatting will survive but you get the idea.
Subaquous
01-06-2001, 09:41 PM
Yup, mine looks pretty similar, the only thing that was dirrent was the line in /etc/passwd, mine said - ftp:14:50:FTP User:/home/ftp:/bin/false
I changed it it what you had, but still no go... I'm thinking that it may have something to do with the firewalls... I'll reboot and make sure that the changes take effect. The FTP program should start automatically shouldn't it, or do you have to start it with a command?
Subaquous
01-06-2001, 10:25 PM
Do you have PAM installed and setup on your comuter?
sssadams
01-06-2001, 10:47 PM
yes I do have PAM installed but no I dont use inetd like the NHF sugests.I have it started in a startup script but the NHF will also work.I use the comand(for my setup)
/usr/sbin/proftpd /etc/proftpd.conf
try changing the line in /etc/passwd to /bin/bash that might work for you.As long as you have no rewrite,delete,chmod and cd-->higher than /home/ftp/pub you should be fine.
Subaquous
01-06-2001, 11:47 PM
I went through the NHF again, untarred the file.... and I think that this happened last time, I'm not sure though: When I went to change the shell the ftp account using "chsh -s /bin/false ftp" my computer gave me the error of :
Changing shell for FTP
Shell not changed
I added /bin/false to the /etc/shells directory
I just noticed your post, I'll try what you mentioned...
Thanks for your help by the way http://www.linuxnewbie.org/ubb/smile.gif
[This message has been edited by Subaquous (edited 06 January 2001).]
[This message has been edited by Subaquous (edited 06 January 2001).]