Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can u lock out a folder in WIN 2000

Status
Not open for further replies.

angel106

Technical User
Aug 1, 2005
39
US
I have a situation were i want to have the access locked for anyone that tries to mess with a folder. However i want my software to be able to access that folder so it can read or write to the folder. Is this possible and if so how?
 
If you have win zip you can pass word protect the folder after you zip it. Or Google for software that will let you protect files and folders with a password.
 
In order for your application to be able to access a folder but disallow access to unauthorised users, two things need to happen:

1) Your application will have to run as a service or via a batch file using Runas with a different user account to the currently logged on person.
This is in order for it to have different security permissions to the current user to permit access to the folder.

2) The folder itself will have to have NTFS permissions set on it to only allow access to the account used by RunAs or the service.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top