LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vsftpd - how to change a virtual user password? (https://www.linuxquestions.org/questions/linux-newbie-8/vsftpd-how-to-change-a-virtual-user-password-4175539164/)

kotjnew 04-08-2015 07:35 PM

vsftpd - how to change a virtual user password?
 
Hi, I'm really a newbie when it comes to Linux, so please bear with me.

We have a working FTP using vsftpd with a pam.d database (by the looks of it).

I've found the list of users/password in the /etc/vsftpd/ folder called passwd, but they are all encrypted.

How can I change the password for a single user? I'm sorry I've been looking for over 3 hourw, still don't understand how to do this.

Thank you very much for whomever can help.

bathory 04-09-2015 02:26 AM

Hi,

You didn't say much about your setup. Anyways my guess is that you can run:
Code:

htpasswd /etc/vsftpd/passwd foo
to change the password of user foo.
See this for more details
Don't forget to make a backup of /etc/vsftpd/passwd first, so in case something goes wrong, you can restore /etc/vsftpd/passwd

Regards


All times are GMT -5. The time now is 05:18 AM.