LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-26-2003, 10:42 PM   #1
winnie
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
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.
 
Old 06-27-2003, 12:31 AM   #2
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
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?
 
Old 06-27-2003, 01:03 AM   #3
winnie
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
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".
 
Old 06-27-2003, 08:33 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM
convert a html file in a graphics file (for Oo) shengchieh Linux - Software 2 09-09-2004 04:41 PM
How to convert the MPEG file to AVI file? stiphon General 3 06-08-2004 07:22 PM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 08:11 PM
Convert Open Office file to PDF file. liguorir Linux - Software 1 01-13-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration