Alright,
Well, after searching for like a few hours what this problem is, I have found something silly, and it looks like a bug. Here is the config layout:
/etc/proftpd.conf
/etc/proftpd.vhosts.conf
Please note that I have removed the ip addresses and made them 0.0.0.0 so don't worry about that.
/usr/local/directadmin/data/users/rpguh/ftp.passwd:
Ok permissions checking time:
# ls -all /etc | grep proftpd
-rw-r--r-- 1 root wheel 1246 Jul 10 11:05 proftpd.conf
-rw-r----- 1 root ftp 5956 Jul 10 12:06 proftpd.passwd
-rw-r--r-- 1 root wheel 203 Jul 10 11:35 proftpd.vhosts.conf
# ls -all /usr/local/directadmin/data/users/rpguh/
total 76
drwx--x--x 3 diradmin diradmin 512 Jul 10 11:40 .
drwx--x--x 119 diradmin diradmin 2048 Jul 10 12:02 ..
-rw-r--r-- 1 diradmin diradmin 2790 Jul 10 11:40 DAdminUsage.bytes
-rw-r--r-- 1 root diradmin 3453 Jul 10 00:36 bandwidth.tally
-rw------- 1 diradmin diradmin 0 May 12 11:21 crontab.conf
drwx--x--x 2 diradmin diradmin 6144 Jul 10 11:40 domains
-rw------- 1 diradmin diradmin 752 Jun 30 14:42 domains.list
-rw-r----- 1 root ftp 3132 Jul 10 11:36 ftp.passwd
-rw-r--r-- 1 diradmin diradmin 41329 Jun 30 14:42 httpd.conf
-rw------- 1 diradmin diradmin 595 Jul 7 14:52 login.hist
-rw------- 1 diradmin diradmin 41 May 12 11:21 ticket.conf
-rw-r--r-- 1 diradmin diradmin 0 May 12 11:21 tickets.list
-rw------- 1 diradmin diradmin 572 Jul 1 01:40 user.conf
-rw------- 1 diradmin diradmin 94 Jul 1 01:40 user.history
-rw------- 1 diradmin diradmin 163 Jul 10 11:36 user.usage
Now the following, every user that is newely added in the ftp.passwd file just does not work! But it works just fine when I add one or more lines from ftp.passwd and put it in the /etc/proftpd.passwd (by copy/pasting). Now I thought, it is a permission problem, so I tested that, by giving it a chmod 777 to the file, but that does not matter, still same problem. So what I'm asking now, I have tested this situation on like 3 machines running DA, and ALL of the machines have the same problem! So this looks like a bug in DA or permissions that aren't rightly set. We are running FreeBSD machines, and all of them has this issue. Can you please help us with this...?
Well, after searching for like a few hours what this problem is, I have found something silly, and it looks like a bug. Here is the config layout:
/etc/proftpd.conf
Code:
ServerName "ProFTPd"
ServerType standalone
Port 21
UseReverseDNS off
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
ScoreboardFile /var/run/proftpd/proftpd.pid
TransferLog /var/log/proftpd/xferlog.legacy
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
#DON'T modify this log format. Its used by DirectAdmin to determine user usage
LogFormat userlog "%u %b"
ExtendedLog /var/log/proftpd/0.0.0.0.bytes WRITE,READ userlog
AuthUserFile /etc/proftpd.passwd
DefaultServer on
TimesGMT off
PassivePorts 49152 65534
<Global>
DeferWelcome on
RequireValidShell no
DefaultRoot ~
DirFakeUser on ftp
DirFakeGroup on ftp
User ftp
Group ftp
#UserAlias anonymous ftp
AllowStoreRestart on
AllowRetrieveRestart on
Umask 022
DisplayLogin welcome.msg
DisplayFirstChdir readme
AllowOverwrite yes
IdentLookups off
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
# Paranoia logging level....
#
ExtendedLog /var/log/proftpd/paranoid.log ALL default
</Global>
Include /etc/proftpd.vhosts.conf
/etc/proftpd.vhosts.conf
Code:
<VirtualHost 0.0.0.0>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/0.0.0.0.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/rpguh/ftp.passwd
</VirtualHost>
Please note that I have removed the ip addresses and made them 0.0.0.0 so don't worry about that.
/usr/local/directadmin/data/users/rpguh/ftp.passwd:
Code:
Don't going to put the passwords here of course, but a long list of users + passwords.
Ok permissions checking time:
# ls -all /etc | grep proftpd
-rw-r--r-- 1 root wheel 1246 Jul 10 11:05 proftpd.conf
-rw-r----- 1 root ftp 5956 Jul 10 12:06 proftpd.passwd
-rw-r--r-- 1 root wheel 203 Jul 10 11:35 proftpd.vhosts.conf
# ls -all /usr/local/directadmin/data/users/rpguh/
total 76
drwx--x--x 3 diradmin diradmin 512 Jul 10 11:40 .
drwx--x--x 119 diradmin diradmin 2048 Jul 10 12:02 ..
-rw-r--r-- 1 diradmin diradmin 2790 Jul 10 11:40 DAdminUsage.bytes
-rw-r--r-- 1 root diradmin 3453 Jul 10 00:36 bandwidth.tally
-rw------- 1 diradmin diradmin 0 May 12 11:21 crontab.conf
drwx--x--x 2 diradmin diradmin 6144 Jul 10 11:40 domains
-rw------- 1 diradmin diradmin 752 Jun 30 14:42 domains.list
-rw-r----- 1 root ftp 3132 Jul 10 11:36 ftp.passwd
-rw-r--r-- 1 diradmin diradmin 41329 Jun 30 14:42 httpd.conf
-rw------- 1 diradmin diradmin 595 Jul 7 14:52 login.hist
-rw------- 1 diradmin diradmin 41 May 12 11:21 ticket.conf
-rw-r--r-- 1 diradmin diradmin 0 May 12 11:21 tickets.list
-rw------- 1 diradmin diradmin 572 Jul 1 01:40 user.conf
-rw------- 1 diradmin diradmin 94 Jul 1 01:40 user.history
-rw------- 1 diradmin diradmin 163 Jul 10 11:36 user.usage
Now the following, every user that is newely added in the ftp.passwd file just does not work! But it works just fine when I add one or more lines from ftp.passwd and put it in the /etc/proftpd.passwd (by copy/pasting). Now I thought, it is a permission problem, so I tested that, by giving it a chmod 777 to the file, but that does not matter, still same problem. So what I'm asking now, I have tested this situation on like 3 machines running DA, and ALL of the machines have the same problem! So this looks like a bug in DA or permissions that aren't rightly set. We are running FreeBSD machines, and all of them has this issue. Can you please help us with this...?