Create share done! But set full controll permissions?

delphi package - easy access to security apis
Post Reply
j.bijl
Posts: 3
Joined: Tue Mar 08, 2005 7:07 pm
Location: Netherlands

Create share done! But set full controll permissions?

Post by j.bijl »

:o
NewShare('c:\test', '\\rsg\test$').Acl.SetFileAccess(account('102565'), true);

How do i give the user "102565" full controll?

Thanks,

Jan.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

NewShare should automatically give full control to everyone.

Anyway, if you want to add a specific user, then the code you posted with SetFileAccess is correct. However, giving in a UNC path for the share name is not correct. Use "NewShare('c:\test', 'test$')" instead.
j.bijl
Posts: 3
Joined: Tue Mar 08, 2005 7:07 pm
Location: Netherlands

create share on other workstation then I'm working on?

Post by j.bijl »

How do I use UNC path for the share name if I want tot make the share on a diffrent computer?

Use "NewShare('c:\test', 'test$')" // works!

Use "NewShare('\\otherpc\c$\test', 'test$')" // does not work!

I guess it must be possible te create NewShare on different pc's?

CU
Jan. :sceptic:
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

It's not possible by using madSecurity. Maybe it's possible by using the win32 APIs with specific parameters, not sure.
j.bijl
Posts: 3
Joined: Tue Mar 08, 2005 7:07 pm
Location: Netherlands

Post by j.bijl »

madshi wrote:It's not possible by using madSecurity. Maybe it's possible by using the win32 APIs with specific parameters, not sure.
Right, thanks for quick repsonding!
Any chance it would be possible in future? It would be very usefull to many developers.

CU,
Jan.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

In some not too near future maybe... :? Right now I'm busy working on madExcept and madCodeHook, because that's what most of my customers are primarily using. That doesn't mean that I won't work on madSecurity anytime soon. But new features might have to wait a bit...
Post Reply