Re: Disable File Deletion/Hiding Folders



What problem are you trying to solve, in the first place?

What you're asking for is how to code the way you think you should solve
your original problem, not about your original problem. Security through
obscurity won't work. File/folder hiding won't work. State your original
problem and the better solution may exist (or may not exist, it the
objective is unreasonable).

"tasleem" <tasleem@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:07147B43-D3DA-4C46-BEE7-C83CE22FE2C2@xxxxxxxxxxxxxxxx
thanks for ur kind help, now i had another solution i had found a software
on
the internet that hides the files and folder i mean thase are not shown in
the drive,but i m able to read and write through my code without the
password
or any thing like that,

how to hide the folder so that its icon is not visible.

"anton bassov" wrote:

Hi mate

i can make one part of my application as windows service only that part
that
does not allow the user to access folder.
what about if i protect that folder with the password,any related help
to
that.

Administrator can easily elevate its privilege level to that of a
LocalSystem account.
Please check the NG - on 2 occasions I presented the code that does the
above.

Therefore, your task is just infeasible -it is impossible to protect
access to your file in such
way that Admin cannot find this or that workaround......


Anton Bassov

tasleem wrote:
Thanks for reply

The your Application must run behalf its own user. If the Application
is an
interactive one you may impersonate Threads while accessing the FS, a
server
application can run be started from the Application User.

i can make one part of my application as windows service only that part
that
does not allow the user to access folder.
what about if i protect that folder with the password,any related help
to
that.

But: The Application User is also under the control of the
Administrator.
Even if the Administrator don't know the password, he may change it
to get
access.



"Gunter Prossliner" wrote:

Hello!

what my aim is that Anobody could not Delete the files from
respective Folder even the administrator,

You can deny Access to the Folder even for Administrators. But:
Administrators can always take the ownership of Files / Folders and
grand
himself the nessersary Permissions again.

only that is done through
my application

The your Application must run behalf its own user. If the Application
is an
interactive one you may impersonate Threads while accessing the FS, a
server
application can run be started from the Application User.

But: The Application User is also under the control of the
Administrator.
Even if the Administrator don't know the password, he may change it
to get
access.



GP







.



Relevant Pages

  • Re: User Account Suddenly Unaccessable
    ... me that only the Administrator has access to the CWLee profile folder. ... The Sharing tab has "Do not share this folder" checked, ...
    (microsoft.public.win2000.general)
  • Re: User Account Suddenly Unaccessable
    ... As I started to type the second command, ... I get two error messages. ... Contact your network administrator. ... It tells me that only the Administrator has access to the CWLee profile folder. ...
    (microsoft.public.win2000.general)
  • Re: User Account Suddenly Unaccessable
    ... Modify the registry so that it points at the correct folder. ... - Log on as administrator ... The Sharing tab has "Do not share this folder" checked, ... In the middle section none of the "permissions" categories have any ...
    (microsoft.public.win2000.general)
  • Re: User Account Suddenly Unaccessable
    ... Revert to the original profile folder. ... Log on as administrator ... The Sharing tab has "Do not share this folder" checked, and the rest of the tab has no data. ... In the middle section none of the "permissions" categories have any checkmarks - no marks in allow, ...
    (microsoft.public.win2000.general)
  • Re: User Account Suddenly Unaccessable
    ... Revert to the original profile folder. ... Log on as administrator ... The Sharing tab has "Do not share this folder" checked, and the rest of the tab has no data. ... In the middle section none of the "permissions" categories have any checkmarks - no marks in allow, ...
    (microsoft.public.win2000.general)