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!

Change a users permissions Programmatically

Status
Not open for further replies.

kelele

Programmer
May 22, 2001
12
US

Using NT folder permissions, is it possible to deny a user access to a folder, but allow the same user to run a program that can access the folder.

I have a situation where certain data files (text files), need to be secured such that they are only modified through a specific program. The user needs to be able to use this program to modify data in the text files. However, the user should not be able to browse to the folder and modify the text files manually.

Currently my program is written in Java. Does anyone know how to achieve this with VB6.0, VB.NET or Java?

Thanks
 
Hi,

If you share the folder as $ShareName then the users will not see the shar when browsing the network and you can then tell your program to use the $ShareName to access the files.

Kind Regards, Paul Benn

**** Never Giveup, keep trying, the answer is out there!!! ****
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top