Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have configured proftp. I want to access by the particular user. I have configured file, but not able to login. message getting login failed.
Please help. below is the configuration file..
******************************************************
[root@localhost ftp]# vi /etc/proftpd.conf
# Use this to excude users from the chroot
DefaultRoot ~ !adm
# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
#IdentLookups of
UseReverseDNS off
# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# Set the user and group that the server normally runs at.
#User deepak
#Group nobody
# Disable sendfile by default since it breaks displaying the download speeds in
# ftptop and ftpwho
UseSendfile no
# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score
# Deepak's Code for the accessing ftp "Deepak"
<Limit LOGIN>
AllowUser deepak
DenyAll
</Limit>
<Directory /home/ftp>
AllowOverwrite off
<Limit MKD STOR DELE RMD WRITE>
DenyAll
</Limit>
</Directory>
I want to access by the 'deepak' user and authentication should be use of the /etc/passwd.
while compiling,getting error....
[root@localhost ftp]# proftpd -c /etc/proftpd.conf -td5
Checking syntax of configuration file
- using TCP receive buffer size of 87380 bytes
- using TCP send buffer size of 16384 bytes
- Fatal: unknown configuration directive 'AuthPAMConfig' on line 20 of '/etc/proftpd.conf'
And while trying to connect, getting error .....
[root@localhost ftp]# ftp localhost
Connected to localhost.localdomain.
220 FTP Server ready.
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): deepak
331 Password required for deepak
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Kindly help. thanks in Advance.
Last edited by deepak_message; 06-23-2011 at 09:11 AM.
I am using Centos 5.6. and I commented the both Auth configuration. the same error getting.
[root@localhost ftp]# proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_delay.c
mod_facts.c
mod_ident.c
mod_cap.c
[root@localhost ftp]# ftp localhost
Connected to localhost.localdomain.
220 FTP Server ready.
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): deepak
331 Password required for deepak
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
So pam auth is not compiled in proftpd, that's why it was complaining.
I guess you've restarted the proftpd service after the changes. Also make sure you're using the correct username/password and that user deepak is not listed in /etc/ftpusers
I checked the user deepak is not listed in the /etc/ftpuser. and when I am trying to connect it gives a message "500 AUTH not understood". please help.
[root@deepak ftp]# ftp localhost
Connected to localhost.localdomain.
220 FTP Server ready.
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): deepak
331 Password required for deepak
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
I checked the user deepak is not listed in the /etc/ftpuser. and when I am trying to connect it gives a message "500 AUTH not understood". please help.
It's /etc/ftpusers (with a trailing "s"). Regarding the "500 AUTH..." it's due to your client. It's nothing to worry about
About the actual error:
You didn't say how you've installed proftpd? If you used your distro's package manager, everything should be sorted.
Are you sure about the username (deepak) and password you're using are correct? I mean can you ssh into that host as user deepak and the password you use for ftp?
Also, try to remove the last restrictions:
Quote:
<Limit LOGIN>
AllowUser deepak
DenyAll
</Limit>
<Directory /home/ftp>
AllowOverwrite off
<Limit MKD STOR DELE RMD WRITE>
DenyAll
</Limit>
</Directory>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.