Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Flat File Comment

by ig (Vicar)
on Dec 10, 2013 at 04:20 UTC ( [id://1066371]=note: print w/replies, xml ) Need Help??


in reply to Flat File Comment

The usual way to control access to files is to set the ownership and permissions on the files and the directories that contain them so that only authorized users are able to access them.

There are database systems with well designed and well tested security and access control capabilities, indexes and constraints - all you need to solve the problems you have described. If security were a concern, I would use proven systems rather than design and build my own.

Replies are listed 'Best First'.
Re^2: Flat File Comment
by PilotinControl (Pilgrim) on Dec 10, 2013 at 13:07 UTC

    Hello IG,
    It's not so much a security issue as it is the following: A master file contains all the records, once an item from that master file has been selected it is "copied" to a new "temp" file for use in the program. Once the temp file has out lived its use the items in the master file are able to be selected again. The issue is how do I make the items selected from the master file remain un-selectable until the temp file has been removed? Also the files in use are only a few KB each. Thanks for the ideas and suggestions.

      In that case, rather than editing the master files, I would probably scan the temp file and index its contents, then scan the master file and exclude anything found in the index. If the temp file doesn't exist, then the index will be empty and nothing will be excluded.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1066371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found