Fedora 8+ virtualmin +webmin+ Proftp problem

10 posts / 0 new
Last post
#1 Wed, 12/03/2008 - 20:00
visu4582

Fedora 8+ virtualmin +webmin+ Proftp problem

Dear friends, I had configure webmin+virtualmin for virtual hosting on fedora core 8,almost every moudle work prefec but proftpd (v 1.3.1)problem with ftp login, anonymous login is working but while creating user with virutalmin i can't logon with specfic user account to virtual ftp host.

Below is config file of ProFTPD.(This is testing machine configuration same as host server)

This is the ProFTPD configuration file

ServerName "ProFTPD server" ServerIdent on "FTP Server ready." ServerAdmin root@localhost

ServerType inetd

DefaultServer on AccessGrantMsg "User %u logged in." DeferWelcome off

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 off UseReverseDNS off

Port 21 is the standard FTP port.

Port 21

Umask 022 is a good standard umask to prevent new dirs and files from being group and world writable.

Umask 022

Default to show dot files in directory listings

ListOptions "-a"

Allow to resume not only the downloads but the uploads too

AllowRetrieveRestart on AllowStoreRestart on

MaxInstances 20

Set the user and group that the server normally runs at.

User ftp Group ftp

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

Normally, we want users to do a few things.

<Global> AllowOverwrite yes <Limit ALL SITE_CHMOD> AllowAll </Limit> </Global>

Define the log formats

LogFormat default "%h %l %u %t \"%r\" %s %b" LogFormat auth "%v [%P] %h %t \"%r\" %s"

ServerType standalone <VirtualHost 192.168.0.134> ServerName slsinfotech.com <Anonymous /home/slscorp/ftp> User ftp Group ftp UserAlias anonymous ftp <Limit WRITE> DenyAll </Limit> RequireValidShell off ExtendedLog /home/slscorp/logs/ftp.log </Anonymous> </VirtualHost>

Wed, 12/03/2008 - 20:39
Joe
Joe's picture

Logs? I have no idea without an error.

--

Check out the forum guidelines!

Wed, 12/03/2008 - 21:16 (Reply to #2)
visu4582

Joe Thanks for reply i search lots on google to solve this issues but not find proper solution hope its done here.
below is log file. you can find that anonymous login successful but user can't.

/var/log/secure

Dec 4 09:37:22 server proftpd[23825]: 192.168.0.130 (::ffff:192.168.0.1[::ffff:192.168.0.1]) - USER ftp.slscorp (Login failed): Incorrect password.
Dec 4 09:37:22 server proftpd[23825]: 192.168.0.130 (::ffff:192.168.0.1[::ffff:192.168.0.1]) - FTP session closed.
Dec 4 09:37:29 server proftpd[23828]: 192.168.0.130 (::ffff:192.168.0.1[::ffff:192.168.0.1]) - ANON anonymous: Login successful.
Dec 4 04:07:29 server proftpd[23828]: 192.168.0.130 (::ffff:192.168.0.1[::ffff:192.168.0.1]) - Preparing to chroot to directory '/home/slscorp/ftp'
Dec 4 04:07:45 server proftpd[23828]: 192.168.0.130 (::ffff:192.168.0.1[::ffff:192.168.0.1]) - FTP session closed.

Wed, 12/03/2008 - 22:09 (Reply to #3)
Joe
Joe's picture

Is the shell you have set for ftp.slscorp in the list of system shells in /etc/shells?

--

Check out the forum guidelines!

Wed, 12/03/2008 - 22:30 (Reply to #4)
visu4582

below is configuration of ftp.slscorp user as in webmin module

ftp.slscorp-501-slscorp-slsftp-/home/slscorp/homes/ftp-/bin/false

&amp; also find shells
[root@server ~]#<b> vi /etc/shells</b>
/bin/false
/bin/sh
/bin/bash
/sbin/nologin
/bin/zsh

Wed, 12/03/2008 - 22:52 (Reply to #5)
Joe
Joe's picture

So, yes. The shell is in the list.

Hmmm...Where did your ProFTPd package come from? This looks kinda like a PAM issue.

--

Check out the forum guidelines!

Wed, 12/03/2008 - 22:55 (Reply to #6)
visu4582

as i told i have configure Web host server which os i Fedora 8 and i use yum to setup pacakages from fedora repository,

regards,
Vishal

Tue, 01/20/2009 - 06:35 (Reply to #7)
DomainAvailableNow

has this issue been resolved? i am also having this issue. been trying to follow along, and sort out what PAM is doing. no luck.

Thu, 12/04/2008 - 18:38
visu4582

hi Joe,
i can't get any solution yet and also waiting for you reply i am new in linux and want to solve at any how.

Regards,
Vishal .

Thu, 12/04/2008 - 20:56 (Reply to #9)
visu4582

Hi joe,
as per your hint i download the source of proftpd and install on test machine now my problem is solved thanks man.
now i will try on my live site and get back

Thanks &amp; Regards
Vishal

Topic locked