How to view the content of the db file of the vsftp login authentication database

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.