resync ftp passwords

Seth

Verified User
Joined
Oct 26, 2003
Messages
261
Location
USA
I have a couple of accounts which are not allowed to connect via ftp. I have tried resetting the password at every level, user, admin and root with no luck. Is there a way to resync ftp passwords?
 
ftp password are stored in /etc/proftpd.passwd.

In DA if you want to reset the ftp password you have to go to FTP Management at the User level and change the password there.
 
I know how to do that :) and understand it. I need to resync the apache user with their ftp account I believe is what I am trying to say. CPanel has a feature to do this "Synchronize FTP Passwords"
 
Apache does not have ftp access so yes I have no idea what you are saying. What passwords are you trying to sync?
 
I know apache doesn't have ftp access.

DA usernames and proftpd. No one can access through ftp.
 
When you create a DA user that user is supposed to be automatically added to the proftpd password list. It that is not happening for you then I suggest contacting DA support.
 
Hello,

Is this by chance an owned IP account? If so, we have a little guide you can go through to make sure the proper files and settings are as they should be:
http://help.directadmin.com/item.php?id=122

For owned IP accounts, the /etc/proftpd.passwd file is not used.
Instead, the /usr/local/directadmin/data/users/username/ftp.password is used. Also check for the defaultdomain= setting in the domain.com.ftp file in the user's "domains" directory.

John
 
Sorry John still no luck. I don't know what to do. Back to the logs! :)
 
Code:
USER:$1$BTz0degs$/4CHCBaCHYTecWL1jy0kL0:521:521:system:/home/USER:/bin/false
[email protected]:$1$EgTRT1tJ$KifJCLz.bccu6rRiXK7Ye/:521:521:custom:/home/USER/domains/DOMAIN.info:/bin/false

so in /usr/local/directadmin/data/users/username/ftp.password I see something like the above. Can I change the user's password here? and if so where?
 
Hello,

1) If this is in fact a private IP account, check to ensure that the VirtualHost for that IP is present in /etc/proftpd.vhosts.conf... do a full restart of proftpd to be sure. Also that VirtualHost should be pointing to the ftp.passwd file.

2) The password is here: $1$BTz0degs$/4CHCBaCHYTecWL1jy0kL0
If you want to reset the password, you'll need to make him a new crypt. Do do this, I like to use php, it's pretty simple:
Code:
[root@server root]# php
<?
echo crypt("[b]newpassword[/b]","anytext");
?>

anexfb1aIeBPk
[root@server root]#
So, you just type "php", then start writing that script by hand.. the anytext is the hash/key so it can really be anything. Once you get up to the ?> part, type enter 2 times to give a newline after the output is shown. Then to tell php to go ahead and excute it, type ctrl-d once... and twice if you dont get a prompt. The "anexfb1aIeBPk" is the new crypt.. it's a slightly different format.. doesn't have the $1$ etc.. to it, but will work just as fine.

Replace:
$1$BTz0degs$/4CHCBaCHYTecWL1jy0kL0

with:
anexfb1aIeBPk

and you now have a new password set.

John
 
Back
Top