Re: Protect Directories from Access
Hiding System Directory or Drive is NEVER a good idea... its ofcourse a bad idea. because Every Folder/Directory protection software developers Discourage and strictly says You MUST NOT lock the System files/Folders or Directories with this software... etc...
So, all i need to tell is, Hiding a System Partition, Folder or System files is really Bad Idea. :)
Re: Protect Directories from Access
Okay, so what can I do to protect the system folder?
Read the changes and retrieve the old status if an unauthorized delete took place?
All in all I don't want to hide it from access. Only because you have installed a firewall, this does not mean, you don't have access to the internet.
For some applications operation in the system Directory will be allowed, for some not.
I want to make it like a firewall, that asks if an application not in a special "trusted - list" wants to operate. If this is still to strict, maybe only filter delete and rewrite operations.
I dont want to lock it, just protecting it...
Re: Protect Directories from Access
Well, what you are talking about is already implemented in the Microsoft Operatring systems since Windows Vista.
It allows write/modify access in system directories or system folders for ONLY programs which are allowed to run as administrator by the user.
So that an ordinary program running with normal privillage cannot change or modify system files/folders and settings. :)
I am not saying creating such an application is impossible... its possible ofcourse... but will be a lil bit hard to go way.... you may try writing such an application, ofcourse.. :)
Re: Protect Directories from Access
Okay, but I use XP and dont want to rely on some protection, coming from microsoft, although using a Microsoft OS.^^
I may be paranoid, but I think there will be lots of security problems with the function you described and someone, who wants to harm your system will probably find a way to bypass that system.
I dont mean to write something superior, but on the one hand, I just want to expand my knowledge and on the other hand have an own programm, with what I can control access and if something happens restore the old version of directorys.
Mhh maybe it is really impossible, like you said, but at least I wanna try it.
Someone else got some ideas for me?
Re: Protect Directories from Access
You can inject dll to all the running applications, or modify kernel32.dll, and capture calls to DeleteFileA and DeleteFileW, you can do this by a technique called API Hooking.