LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2011, 09:09 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
Proftp Configuration problem


Hi,

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.
 
Old 06-23-2011, 05:11 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You didn't say your distro and how you've installed proftpd.
Quote:
- Fatal: unknown configuration directive 'AuthPAMConfig' on line 20 of '/etc/proftpd.conf'
Are you sure that the pam module is compiled in proftpd. What gives
Code:
proftpd -l
You can comment out the 2 directives
Quote:
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
and try to login to see if it works

Regards
 
Old 06-24-2011, 01:44 AM   #3
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
Hi,

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>
 
Old 06-24-2011, 02:28 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
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
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

Regards
 
Old 06-24-2011, 08:37 AM   #5
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
Hi Bathory,

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.


Thanks,
Deepak
 
Old 06-24-2011, 04:22 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
hi,

Quote:
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>
to see if it helps
 
  


Reply



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
[SOLVED] proftp has problem windstory Linux - Newbie 19 09-03-2009 07:47 AM
ProFTP Configuration Help nuebKitsune Linux - Newbie 3 01-24-2007 01:13 PM
:'-( proFTP problem brixton Linux - Software 7 04-19-2006 05:48 PM
proftp configuration stlshawn Slackware 4 07-27-2005 03:04 AM
Proftp configuration stlshawn Slackware 2 07-26-2005 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:27 PM.

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