Lock on directory

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

I want to put a lock on my App's data directory (and all subdirectories
below) when my application launches, so you can't delete through explorer or
any other program. How is that possible.

VJ
 
Hello VJ,
I want to put a lock on my App's data directory (and all subdirectories
below) when my application launches, so you can't delete through explorer
or any other program. How is that possible.

I don't think that's possible, in the simple way you describe it.

One way to do it might be to keep your files open, but of course that may
have other disadvantages. Or you could fiddle around with the file system
permissions, configuring them to some more restrictive set when the
application runs and setting back the changes when it ends.

In the end, I think it would be the best idea if you just accepted that
your application doesn't own the system - it's the user's system (or at
least the system administrator's) and your application should, to a
reasonable degree, deal with problem situations that can come up while it
runs.


Oliver Sturm
 
Yes. I kind floated with idea of file lock, but then gave it up as it was
bad idea. Just wanted to see if some one here might have come up with new
idea.

Yes also true, if they delete files and directory, its their problem. We can
only do a extent protection.

VJ
 
VJ said:
I want to put a lock on my App's data directory (and all subdirectories below) when my
application launches, so you can't delete through explorer or any other program. How is
that possible.

VJ

Don't run as an admin or power user, and remove delete privileges from the applications
folder and sub-folders and files for non-admin or power users.

Willy.
 
Yes that is what we recomended to our users. But again there are power users
or the computer wizes, who mess with the application' folders and then
compalin your app does not work. The we spend time to see the log and say oh
ok you messed with file system. This again takes time and tricky. Oh well
not sure what to do catchy tricky situation. The problem is this of the
shelf product and not a in network entriprise application to control what
you want.

VJ
 
VJ said:
Yes that is what we recomended to our users. But again there are power users or the
computer wizes, who mess with the application' folders and then compalin your app does not
work. The we spend time to see the log and say oh ok you messed with file system. This
again takes time and tricky. Oh well not sure what to do catchy tricky situation. The
problem is this of the shelf product and not a in network entriprise application to
control what you want.
You won't be able to stop those who run as admin or power user and mess with the system in
an unmanaged environment.
Note, that even If it would be possible to "lock" a folder and it's sub-objects (which
isn't), they would also be able to "unlock" as well, and, what stops them from messing with
the file(s) before or after the program runs.

Willy.
 
You are correct, that is why as a last step I came here to see if someone
had done it. I think just legal documents and better log mangment is what is
going to keep us going for now..

VJ
 
VJ said:
You are correct, that is why as a last step I came here to see if someone had done it. I
think just legal documents and better log mangment is what is going to keep us going for
now..

VJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top