go-acl
go-acl copied to clipboard
RW only to creater (either windows service or executer)
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
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
Thx