How to view the vsftp database db file in Linux

  

Because of your carelessness, after forgetting the original user password after building vsftp on Linux, you need to check the contents of the vsftp login authentication database db file, then how to do it? Do it? The following small series teaches you how to view the database db file in vsftp in Linux.

When building vsftp, many people will use db_load establish a database file for the virtual users. However, if it is the successor to take over, just did not do this handover, it is more troublesome —— For example, my predecessor did not leave too much information on VSFTP, so I had to check it myself, so hard.

After several twists and turns, I finally confirmed that the username and password of vsftp are placed in a file called vsftpd_login.db. However, this file cannot view the content. I don’t know how many users can log in to vsftp. The username and password are啥 ……

Checked the virtual user of vsftp, learned that this is the database file generated by the db_load program, but there is no information on the Internet to mention how to restore the file, I am still stupid to find & ldquo ; contains a file with a known username and password, I have not finished reading this. ……

Find the db_load program, placed in the /usr/bin directory, ls - l /usr/bin/db* See a large number of executable files at the beginning of db_. In my experience, db_dump should be able to export the contents of the .db file and the program corresponding to db_load. Baidu and google did not find the Chinese information of the db_dump command, but had to check the keyword "db_dump man", and found the result

http://www.manpagez.com/man/1/db_dump/

Using the command

The code is as follows:

/usr/bin/db_dump -da /etc/vsftpd/vsftpd_login.db

Finally shows all usernames and passwords Amitabha, good and good.

Make a record to commemorate this, and give a mark to the latecomers to the English language.

The above is the method of viewing the vsftp database db file under Linux. If you have forgotten the original user password file, you can directly view the vsftp file.

Copyright © Windows knowledge All Rights Reserved