go-acl icon indicating copy to clipboard operation
go-acl copied to clipboard

RW only to creater (either windows service or executer)

Open acschristoph opened this issue 1 year ago • 2 comments

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

acschristoph avatar Jun 15 '24 05:06 acschristoph

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

kirides avatar Jun 20 '24 19:06 kirides

Thx

Cacsjep avatar Jun 21 '24 04:06 Cacsjep