hectane / go-acl

Go library for manipulating ACLs on Windows
MIT License
119 stars 31 forks source link

RW only to creater (either windows service or executer) #21

Open acschristoph opened 3 weeks ago

acschristoph commented 3 weeks ago

Hey

I want to set read write access only hwo create my file, in my case its a database, my prog run as windows services so only the windows service account should have access to it. or when running in development just the user how invoke the binary, it would be very kind if you can show me how to setup the ACL, is a little bit unclear to me because there is no really documentation. Would be greate if you can help me out, so that i can use your libary.

thanks

kirides commented 2 weeks ago

You'd need to figure out who the current principal (user/account who runs the executable) is.

This StackOverflow post may help: https://stackoverflow.com/a/251267

Cacsjep commented 2 weeks ago

Thx