Results 1 to 9 of 9

Thread: How to give Folder access permission to a specific process [Help]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Question 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!

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,398

    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?

  3. #3
    Addicted Member thetimmer's Avatar
    Join Date
    Jan 2014
    Location
    Plano, Texas
    Posts
    243

    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: How to give Folder access permission to a specific process [Help]

    Quote Originally Posted by ident View Post
    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.


    Quote Originally Posted by thetimmer View Post
    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..

  5. #5
    New Member
    Join Date
    Mar 2014
    Posts
    1

    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..

  6. #6
    Lively Member
    Join Date
    May 2011
    Posts
    97

    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.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: How to give Folder access permission to a specific process [Help]

    Quote Originally Posted by hitesh 2000 View Post
    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..

  8. #8
    Addicted Member thetimmer's Avatar
    Join Date
    Jan 2014
    Location
    Plano, Texas
    Posts
    243

    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

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: How to give Folder access permission to a specific process [Help]

    Quote Originally Posted by thetimmer View Post
    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
  •  



Click Here to Expand Forum to Full Width