LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to convert a txt file to be a db file in Redhat linux 9? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-convert-a-txt-file-to-be-a-db-file-in-redhat-linux-9-a-68367/)

winnie 06-26-2003 10:42 PM

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.

nakkaya 06-27-2003 12:31 AM

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?

winnie 06-27-2003 01:03 AM

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".

stickman 06-27-2003 08:33 AM

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


All times are GMT -5. The time now is 09:33 PM.