How to convert a txt file to be a db file in Redhat linux 9?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to convert a txt file to be a db file in Redhat linux 9?
I am setting a virtual user FTP server.
I want to convert a txt file such as login.txt to be a db file such as login.db
I am using Redhat linux 9
How to do?
I try the command "db_load -T -t bash -f ~/logins.txt /etc/vsftpd/login.db", but the system not work, and say the command not found.
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
what do you mean by database just changing the extension does going to effect anything are you going to insert it to a database like mysql? if so which database?
I try to open other origenal *.db file in RH9 by openoffice calc by dbase format, but i can't read the text in the file, maybe the file is not in dbase(*.dbf) format.
did you try "db_load -T -t bash -f ......." in redhat 8 ?
any way, I use vsftpd service in RH9, and type the command by "root".
Which database is your FTP server getting the authentication info from? LDAP, MySQL, PostgreSQL, Berkeley? If it's Berkeley, you can do something simple like:
makemap hash login.db < login.txt
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.