This article mainly introduces how to view the content of the db file of the vsftp login authentication database, that is, it is generated using the db_load command. db file, which is used as a virtual user database of vsftp. This article is applicable to directly viewing the database and exporting the user label VSFTP if you forget the original user password file.
When building vsftp, many people use db_load to create database files for virtual users. However, if I did not take over after the job and did not do the handover in this regard, it would be quite troublesome-for example, I did not leave too much information for the former VSFTP, so I had to check it myself.
After several twists and turns, I finally confirmed that the user name and password of vsftp are stored in a file named vsftpd_login.db. However, this file cannot be viewed and I do not know how many users can log on to vsftp, what is the username and password ......
I checked the virtual users of vsftp and learned that this is a database file generated through the db_load program. However, there is no information on the Internet about how to restore the file, I am still dumb to find the file "contains a known user name and password". I haven't finished this article ......
Find the db_load program and place it in the/usr/bin directory. run ls-l/usr/bin/db * to see a large number of executable files starting with db _. in my experience, db_dump can be exported. the program corresponding to db_load in the db file. Baidu and google did not find the Chinese information for the db_dump command, so they had to query the keyword "db_dump man" and found the result.
Http://www.manpagez.com/man/1/db_dump/
Use commands
Copy codeThe code is as follows:/usr/bin/db_dump-d a/etc/vsftpd/vsftpd_login.db
Finally, all user names and passwords are displayed.
To this end, we will make a record to mark the latencies in English.