I cannot set FTP accounts!

Sam9999

Verified User
Joined
Apr 26, 2008
Messages
26
When I try to create a ftp account for a domain it appear be created but don't work, there's a problem with the password for the [email protected] account too.
I create [email protected] it will be showed in control panel but when I try to access che password it's not right.

Again, wath kind of user is created with a new ftp account?
 
Maybe it's the some problem with quota?

Like in the other post for emails?
 
May be the problem it's another!

After set the quotas I have try to create a ftp account but it don't permit the access, the FTP program say that the password it's wrong, is there a password file for users that maybe is lost?
 
As thorough as that link is, scsi, if only one client is reporting the problem we find the easiest way to address the problem is to just reset the ftp user's password. That usually works. :)

Jeff
 
A Little server!

It's right, only one user have a problem.
Because4 I have the admin pwd and I can work with it.
But I have try to reset the pwd or delete and redo the user but at the end it's the some, I can't login with that user.
I have to investigate.
I have do a rebuild of the VPS machine and after I have restored a "backup administrator" do with direct admin.
I think there's more problems... or I resolve or I have to ask assistance.
 
I'm looking for.....


vps:~# pico /etc/proftpd.vhosts.conf

<VirtualHost 194.177.97.78>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/194.177.97.78.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/admin/ftp.passwd

</VirtualHost>

/etc/proftpd.passwd
0 -rw-r----- 1 root ftp 0 Jun 9 2008 proftpd.passwd

AND:

vps:/etc# pico /usr/local/directadmin/data/users/admin/ftp.passwd

admin:xxxxxxxxxxxxxxxxxxxx:1002:111:system:/home/admin:/bin/false
[email protected]:xxxxxxxxxxxxxxxxxx:1002:111:ftp:/home/admin/domains/lesom.eu/public_ftp:/bin/false
[email protected]:xxxxxxxxxxxxxxxxxx/:1002:111:custom:/home/admin/domains/sam9999.com/public_html/tf:/bin/false
[email protected]:xxxxxxxxxxxxxxx:1002:111:domain:/home/admin/domains/magiko.biz:/bin/false

Then I have create the account only tf without @domain.com it was write here:
tf:xxxxxxxxxxxxxxxx:1002:111:custom:/home/admin/domains/sam9999.com/public_html/tf:/bin/false

But at the end it's login incorrect.... I can't understand.... and:

Anonymous=no
AnonymousUpload=no
AuthUserFile=/usr/local/directadmin/data/users/admin/ftp.passwd
DefaultRoot=/home/admin/domains/sam9999.com/public_ftp
ExtendedLog=/var/log/proftpd/194.177.97.79.bytes
MaxClients=10
MaxLoginAttempts=3
[email protected]
ServerName=ProFTPd
defaultdomain=yes
ip=194.177.97.78
 
Last edited:
/etc/proftpd.passwd

It seems that proft looking for passwords to /etc/proftpd.passwd but directadmin write passwords in /usr/local/directadmin/data/users/admin/ftp.passwd it's taht? How I can correct this issue?

vps.sam9999.com - FS: using system lstat()
vps.sam9999.com - scrubbing scoreboard
vps.sam9999.com - ROOT PRIVS at mod_core.c:131
vps.sam9999.com - RELINQUISH PRIVS at mod_core.c:133
vps.sam9999.com - ROOT PRIVS at mod_core.c:161
vps.sam9999.com - RELINQUISH PRIVS at mod_core.c:192
vps.sam9999.com - FS: using system lstat()
vps.sam9999.com - ROOT PRIVS at main.c:1185
vps.sam9999.com - RELINQUISH PRIVS at main.c:1189
vps.sam9999.com - no matching vhost found for 194.177.97.78#21, using DefaultServer 'ProFTPd'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at main.c:1034
vps.sam9999.com (84.221.215.77[84.221.215.77]) - SETUP PRIVS at main.c:1039
vps.sam9999.com (84.221.215.77[84.221.215.77]) - FTP session requested from unknown class
vps.sam9999.com (84.221.215.77[84.221.215.77]) - performing module session initializations
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: opening DelayTable '/var/run/proftpd/proftpd.delay'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at mod_delay.c:948
vps.sam9999.com (84.221.215.77[84.221.215.77]) - FS: using system open()
vps.sam9999.com (84.221.215.77[84.221.215.77]) - RELINQUISH PRIVS at mod_delay.c:950
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_log: opening ExtendedLog '/var/log/proftpd/auth.log'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at mod_log.c:1178
vps.sam9999.com (84.221.215.77[84.221.215.77]) - RELINQUISH PRIVS at mod_log.c:1180
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_log: opening ExtendedLog '/var/log/proftpd/access.log'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at mod_log.c:1178
vps.sam9999.com (84.221.215.77[84.221.215.77]) - RELINQUISH PRIVS at mod_log.c:1180
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_log: opening ExtendedLog '/var/log/proftpd/194.177.97.103.bytes'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at mod_log.c:1178
vps.sam9999.com (84.221.215.77[84.221.215.77]) - RELINQUISH PRIVS at mod_log.c:1180
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ROOT PRIVS at mod_auth.c:145
vps.sam9999.com (84.221.215.77[84.221.215.77]) - opening scoreboard '/var/run/proftpd/proftpd.pid'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - RELINQUISH PRIVS at mod_auth.c:147
vps.sam9999.com (84.221.215.77[84.221.215.77]) - ident lookup disabled
vps.sam9999.com (84.221.215.77[84.221.215.77]) - connected - local : 194.177.97.78:21
vps.sam9999.com (84.221.215.77[84.221.215.77]) - connected - remote : 84.221.215.77:1435
vps.sam9999.com (84.221.215.77[84.221.215.77]) - FTP session opened.
vps.sam9999.com - FS: using system lstat()
vps.sam9999.com - FS: using system lstat()
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'USER [email protected]' to mod_core
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'USER [email protected]' to mod_core
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'USER [email protected]' to mod_delay
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'USER [email protected]' to mod_auth
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endpwent" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endpwent" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endgrent" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endgrent" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching CMD command 'USER [email protected]' to mod_auth
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getgroups" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getgroups" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - no supplemental groups found for user '[email protected]'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching POST_CMD command 'USER [email protected]' to mod_delay
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: mapping DelayTable '/var/run/proftpd/proftpd.delay' into memory
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: write-locking DelayTable '/var/run/proftpd/proftpd.delay', row 1
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: selecting median interval from 1 value
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: adding 776 usecs to USER row
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: unlocking DelayTable '/var/run/proftpd/proftpd.delay', row 1
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: unmapping DelayTable '/var/run/proftpd/proftpd.delay' from memory
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching LOG_CMD command 'USER [email protected]' to mod_log
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endpwent" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endpwent" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endgrent" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "endgrent" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching CMD command 'PASS (hidden)' to mod_auth
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getgroups" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getgroups" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - no supplemental groups found for user '[email protected]'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getpwnam" to module mod_auth_file
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_auth_file/0.8.3: using passwd file '/etc/proftpd.passwd'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching auth request "getpwnam" to module mod_auth_unix
vps.sam9999.com (84.221.215.77[84.221.215.77]) - no such user '[email protected]'
vps.sam9999.com (84.221.215.77[84.221.215.77]) - USER [email protected]: no such user found from 84.221.215.77 [84.221.215.77] to 194.177.97.78:21
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: mapping DelayTable '/var/run/proftpd/proftpd.delay' into memory
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: write-locking DelayTable '/var/run/proftpd/proftpd.delay', row 2
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: selecting median interval from 1 value
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: adding 988 usecs to PASS row
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: unlocking DelayTable '/var/run/proftpd/proftpd.delay', row 2
vps.sam9999.com (84.221.215.77[84.221.215.77]) - mod_delay/0.5: unmapping DelayTable '/var/run/proftpd/proftpd.delay' from memory
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
vps.sam9999.com (84.221.215.77[84.221.215.77]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
 
What is the correct think to do?

If I add
[email protected]:$1$iQV5DEsK$dLQ6.n/Ur1J2AdrC4w5B4/:1002:111:user:/home/admin/domains/sam9999.com/public_html/sam:/bin/false

In
/etc/proftpd.passwd

The I can connect.

But I don't think that is the correct think to do.

I can change inside directadmin.conf the path but I can think that cannot be correct because every users must have his fto password set in a different file?

What I have to do?

I can see that /etc/proftpd.conf it's empty, maybe is here the error?

For now I have chaged in directadmin.conf the path in
ftppasswd=/usr/local/directadmin/data/users/admin/ftp.passwd

I can think that can be correct because in /etc/proftpd.vhosts.conf
The path are:
AuthUserFile /usr/local/directadmin/data/users/admin/ftp.passwd
for admin, and
AuthUserFile /etc/proftpd.passwd
for shared.

It there's the trouble a about the empty /etc/proftp.conf that I hve to correct, if needed.
And I don't understand if I will create ftp account under users account they will be write in a right place or in /usr/local/directadmin/data/users/domain/ftp.passwd

only the first will write in /etc/proftp.passwd

I have now write those basic settings in /etc/proftp.conf I hope all it's right
http://www.proftpd.org/docs/configs/basic.conf
 
Last edited:
Back
Top