Folder Permissions

delphi package - easy access to security apis

Folder Permissions

Postby Kips » Fri Jul 25, 2008 8:22 am


My ultimate goal is to pass a folder path and retrieve the folder permissions for it (read, write, create, delete)

So I thought I could do :

MyShare := Share('\\VADER\V8_TEST_FILES')

But this doesn't bring back anything for NetName or Path and therefore I'm not able to access the Access properties.

So then I thought I could get all the shares on my system and loop through them. So I do a

Me := Shares([stDisk]);

But this gives only 4 entries. Namely D:\, E:\, C:\WINDOWS, C:\. So I guess this is the current shares on my local machine.

So I guess my question is, Is there any way to connect to a remote share and find out what access rights I have?


Posts: 1
Joined: Fri Jul 25, 2008 8:12 am

Postby madshi » Mon Sep 01, 2008 9:31 am

Sorry for the extremely late reply! Somehow my RSS notification system missed your thread... :(

You can try to specify the server name in the third parameter of the "Shares" function. To be honest, I never tested madSecurity with remote servers, though. So I don't know if that will work.
Site Admin
Posts: 10033
Joined: Sun Mar 21, 2004 5:25 pm

Return to madSecurity

Who is online

Users browsing this forum: No registered users and 3 guests