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 fileServerName "ProFTPD server" ServerIdent on "FTP Server ready." ServerAdmin root@localhost
ServerType inetdDefaultServer on AccessGrantMsg "User %u logged in." DeferWelcome off
Use this to excude users from the chrootDefaultRoot ~ !adm
Use pam to authenticate (default) and be authoritativeAuthPAMConfig 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 listingsListOptions "-a"
Allow to resume not only the downloads but the uploads tooAllowRetrieveRestart 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 ftpwhoUseSendfile no
This is where we want to put the pid fileScoreboardFile /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 formatsLogFormat 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>
Logs? I have no idea without an error.
--
Check out the forum guidelines!
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.
Is the shell you have set for ftp.slscorp in the list of system shells in /etc/shells?
--
Check out the forum guidelines!
below is configuration of ftp.slscorp user as in webmin module
ftp.slscorp-501-slscorp-slsftp-/home/slscorp/homes/ftp-/bin/false
& also find shells
[root@server ~]#<b> vi /etc/shells</b>
/bin/false
/bin/sh
/bin/bash
/sbin/nologin
/bin/zsh
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!
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
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.
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 .
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 & Regards
Vishal