There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware monitor motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windows xp windowsxp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Design Issue


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
hitman_in_wi's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2004
Experience: Intermediate
20-Sep-2004, 01:07 PM #1
Design Issue
Here's the deal.

I work at a store, and that store has products. I made a program to test the user on those products.

However, I have no database. I am working with simple text files. Therefore, my entire product list resides in a text file. I want to enable superusers to be able to add,edit,delete products, whereas I only want general users to be able to test on them. However, Im not quite sure how to enforce this.

I do have a couple ideas:
1)Make a second, seperate program to add, edit, and delete products.
New products will not be shown in the testing program until it is restarted.
The add,edit,delete program would need password protection.

2)Create a sperate, password protected form in the main program. The same effect is created, but still only one single program.

How would you do it if you were me?

Either way though, Im not sure how to password protect this. Sure I could make a pwd.txt file, and encrypt a password into it, thus preventing unauthorized access. However, there would be nothing to stop a user from deleting the pwd.txt file altoghether, or editing it so that no one may access the program.

I guess this also ties in with another question. Since my data is all in text files, is there ANY way that I can protect it from being edited or deleted? Im guessing no, but if there is Id like to know.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
20-Sep-2004, 01:17 PM #2
Not really if it's in regular text files...I would encrypt the files myself if you aren't using a database. And that would also work to store your pwd.txt file so people can't modify it.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:28 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.