VOGONS


dBase and Encrypted Files

Topic actions

First post, by Coastal

User metadata
Rank Newbie
Rank
Newbie

I've been using DOSBox 0.74 to successfully run dBase IV with old, unencrypted, database files.
However, when I try to log on to use database files that were encrypted with the dBase PROTECT
utility, the dBase login screen will not allow me to enter a password.
The password is contained in an encrypted file. (I know the password.)

The login screen will accept the Group Name and User Name, but the password box shows a
blinking curser remaining just outside of the right end of the password box, and nothing can be
typed into the box..

Does anyone know how to solve this?

I'm using a Windows 7, Home Premium, 64 bit machine with an i7 processor and 8 GB of RAM

Thanks...

Reply 1 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Are you sure this is a DOSBox problem? Do you know whether the program behaves the same way under real DOS?

Maybe the cursor isn't actually supposed to show if anything is being typed, so an observer would be unable to see the length of the password as it is typed in.

Also, DOSBox IS NOT SUITED TO RUN YOUR NON-GAMING DOS APPLICATION .

Reply 2 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

I believe that it is a DOSBox problem. l have used the dbase IV program for years under real DOS, even with encrypted files.
And I personally encrypted the files that I'm trying to access now.
The dBase people also now sell a program that uses a modified version of DOSBox to allow printing.

The logon screed normally allows the password to be typed and seen as it's typed.
I suspect the problem could be that the file which contains the password is encrypted but I don't know what to do about it.

Reply 3 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Coastal wrote:

I suspect the problem could be that the file which contains the password is encrypted but I don't know what to do about it.

That sure doesn't sound like a DOSBox problem.

Reply 4 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

that somehow DOSBox is preventing dBase from reading the encrypted file that contains the password.

Reply 5 of 23, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Perhaps the file should have attributes like System, Hidden, or Read-Only, and the app insists on finding those. Seems plausible for a password file, and if it's true then the app won't work correctly with DOSBox's emulated DOS. It doesn't matter how you set file attributes in the host file system, DOSBox won't see them. The app may need other specific DOS features as well, but of course you can try running the app with a disk image and booting real DOS in DOSbox -- or better yet, use a VM intended for running DOS apps.

Reply 6 of 23, by Davros

User metadata
Rank l33t
Rank
l33t

PROTECT builds and maintains a password system file called DBSYSTEM.DB, which contains a record for each user who accesses a PROTECTed system. Each record, called a user profile, contains the user's log-in name, account name, password, group name, and access level. When a user attempts to start dBASE Plus (if dBASE Plus is configured to require a log-in to start the program), or attempts to access an encrypted table (if dBASE Plus is configured to require a log-in when an encrypted table is accessed), dBASE Plus looks for a DBSYSTEM.DB file. You can specify a location for this file in the [CommandSettings] section of PLUS.ini:

DBSYSTEM=C:\Program Files\dBASE\Plus\BIN

If there is no DBSYSTEM entry in PLUS.ini, dBASE Plus looks for the file in the same directory in which PLUS.exe is located. If it finds the file, it initiates the log-in process. If it does not find the file, there is no log-in process.

why not try dbase for windows
http://www.dbase.com/dbasesql/trial/

Guardian of the Sacred Five Terabyte's of Gaming Goodness

Reply 7 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

when I encrypted the files, dBase IV (not dBase Plus) wrote the files
dbase420.acc, dbsystem.db, dbsystem.sql, and login.db. All of these files
are located in the same directory with dBase.exe

I believe that dBase finds dbsystem.db when the logon screen appears,
but I guessing that it then looks for the encrypted login.db file, and can't read it.

The dBase program worked correctly with these encrypted files, when I last
used it under Vista without an emulator.

Reply 8 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Coastal wrote:

that somehow DOSBox is preventing dBase from reading the encrypted file that contains the password.

While it's not impossible, it is very unlikely that there is something about the encryption that would interfere with DOSBox. A file is a file, encrypted or not.

Coastal wrote:

The dBase program worked correctly with these encrypted files, when I last
used it under Vista without an emulator.

How are you mounting your directories? Do the mounted folders have the same paths that the program used when you were running it in Vista?

Reply 9 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

I currently have the directories dBase IV and database both mounted under c:\dosprgs

c:\dosprgs\dBase IV
C:\dosprgs\database

They were located similarly in Vista
They also worked correctly in Vista when database was located in a remote directly,
but dBase IV was started from the database directory.

Reply 10 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

"Similar?" The computer doesn't care about "similar".

When you run DOSBox, what folders are you mounting? Are you mounting c:\dosprgs as drive C, or what? Considering DOSBox cannot recognize folders with spaces (like "dBase IV"), it is amazing it works at all.

Reply 11 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

You're right--I wrote that too quickly.
I'm mounting c:\dosprgs as drive C,
and the folder name isn't "dBase IV" as I've shown, it's name is just "dBase".
I don't use more than 8 characters and no spaces in a file name.

Reply 12 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Okay, and when you were running it in Vista, did you have folders exactly named C:\dBase and C:\database, or were they something else?

Reply 13 of 23, by Davros

User metadata
Rank l33t
Rank
l33t

try copying DBSYSTEM.DB to the same folder as protect.exe

Guardian of the Sacred Five Terabyte's of Gaming Goodness

Reply 14 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

There is no file named "Protect.exe"
All of the program files for dBase IV are in one folder

Reply 15 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

Jorpho wrote:

"Okay, and when ou were running it in Vista, did you have folders exactly
named C:\dBase and C:\database, or were they something else?"

Yes, thery were named exactly the same.

Reply 16 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

Ripsaw8080 wrote:

"Perhaps the file should have attributes like System, Hidden, or Read-Only, and the app
insists on finding those.
Seems plausible for a password file, and if it's true then the app won't work correctly
with DOSBox's emulated DOS. It doesn't matter how you set file attributes in the host
file system, DOSBox won't see them."

Thank you VERY much.
I find that the login file DOES contain a Read Only attribute. So I guess that must be the reason I can't
enter a password.

Can you recommend a VM that might work with dBase IV encrypted files ?

Reply 17 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Coastal wrote:

I find that the login file DOES contain a Read Only attribute. So I guess that must be the reason I can't
enter a password.

I doubt it. But if it does come down to attributes, you can still use DOSBox provided you use disk images and boot a real version of DOS, as in Install DOS in DOSBox .

What happens if you clear the read-only attribute in Windows? Are any other files read-only? The program might simply be trying to write to a file that it cannot write to.

Can you recommend a VM that might work with dBase IV encrypted files ?

VMware, VirtualBox, or Virtual PC will all probably work equally well. You can even use Vista or XP inside the VM if you want, though that would be overkill.

Reply 18 of 23, by Coastal

User metadata
Rank Newbie
Rank
Newbie

I cleared the Read-Only attribute, and there is no difference--I still can't enter a password.

I still have an old copy of DOS, but it's on 5-1/4 in. floppies, and I don't know how I would get it onto my machine.

I've begun to look into the VM's suggested, but at first glance, they seem to be more difficult to handle than DOSBox.

Reply 19 of 23, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

You don't really need all of DOS; any ordinary boot floppy (or image of a boot floppy), even from Windows 95 or 98, will do fine. Such floppy images are easily found throughout the Internet. FreeDOS will also probably do the trick.

Coastal wrote:

I've begun to look into the VM's suggested, but at first glance, they seem to be more difficult to handle than DOSBox.

Not really, especially if booting into DOS is necessary. The other alternative would be to get Windows 7 Professional or Ultimate, which includes XP Mode.

Or you can switch to Windows 7 32-bit if you really want to and don't really need to use 8 GB of RAM.

Coastal wrote:

I cleared the Read-Only attribute, and there is no difference--I still can't enter a password.

Did you only change the attribute for that one file? Were there no other files that had the read-only attribute?