-
Mar 25th, 2014, 03:12 PM
#1
Thread Starter
Lively Member
How to give Folder access permission to a specific process [Help]
Hello again,
I'm working on a official application which is recording few tasks detail doing by my workers. Tasks are going to save in a text file.
I want to protect the installation folder of that application So that no-one can copy/read/modify the log files except that application.
For that i'v searched about Files/Folder permission
Code:
http://www.vbforums.com/showthread.php?616021-Setting-file-and-folder-permissions
These codes are working fine to set a folder permission for a Windows User account.
But after applying such permissions, My application is also not accessing the log files.
Is it possible in .net to restrict folder access for a user-account except few selected process?
As i have seen few Anti-viruses are locking their installation folder. How are they doing that? What term i should use in search engines for such folder permissions for specific process, to get more specific results?
Thanks !
Regards!
-
Mar 25th, 2014, 03:18 PM
#2
Re: How to give Folder access permission to a specific process [Help]
Installation paths are for applications not data. When you say recording...You mean like a keylogger?
-
Mar 25th, 2014, 04:23 PM
#3
Addicted Member
Re: How to give Folder access permission to a specific process [Help]
Look at impersonating... it sounds ominous but what you're really doing is allowing your application to operate with the credentials of an account you setup only for the purpose of writing/reading the log files. As long as your users aren't admins on your domain it could work for you.
The link I posted here works if you are in an environment with Active Directory.
_____________
Tim
If anyone's answer has helped you, please show your appreciation by rating that answer.
When you get a solution to your issue remember to mark the thread Resolved.
reference links
-
Mar 26th, 2014, 01:29 AM
#4
Thread Starter
Lively Member
Re: How to give Folder access permission to a specific process [Help]
Originally Posted by ident
Installation paths are for applications not data. When you say recording...You mean like a keylogger?
Certainly its not a keylogger.. Its a application with UI.
Its something like a firewall application which is checking if any process is accessing any black-listed IP address. This application is for banking department. Hence we don't wanna use any third party Firewall application.
Originally Posted by thetimmer
Look at impersonating... it sounds ominous but what you're really doing is allowing your application to operate with the credentials of an account you setup only for the purpose of writing/reading the log files. As long as your users aren't admins on your domain it could work for you.
The link I posted here works if you are in an environment with Active Directory.
Thanks for the feedback. The link you've posted above can be workable if it can be done without a/c password requirement.
My application is executing with the current user account..and i want to give folder access and file modification permissions to my application only..
-
Mar 26th, 2014, 02:18 AM
#5
New Member
Re: How to give Folder access permission to a specific process [Help]
how to view the sub data sheet data from ms access using vb.net use OLEDBConnection... please help me .
thank you in advance..
-
Mar 26th, 2014, 04:03 AM
#6
Lively Member
Re: How to give Folder access permission to a specific process [Help]
Try with encrypt your file this way you only know the decryption key/algo so no one can modify your files.
-
Mar 26th, 2014, 12:56 PM
#7
Thread Starter
Lively Member
Re: How to give Folder access permission to a specific process [Help]
Originally Posted by hitesh 2000
Try with encrypt your file this way you only know the decryption key/algo so no one can modify your files.
encryption can't protect log files from deletion.. One more thing.. my application is divided in to multiple exe files..all these exe files are accessing same log files...I can't even lock the file..
-
Mar 26th, 2014, 01:43 PM
#8
Addicted Member
Re: How to give Folder access permission to a specific process [Help]
It really sounds like you need to log to a database to meet these requirements.
_____________
Tim
If anyone's answer has helped you, please show your appreciation by rating that answer.
When you get a solution to your issue remember to mark the thread Resolved.
reference links
-
Mar 26th, 2014, 11:36 PM
#9
Thread Starter
Lively Member
Re: How to give Folder access permission to a specific process [Help]
Originally Posted by thetimmer
It really sounds like you need to log to a database to meet these requirements.
DB file can be delete if it present on local drives.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|