How can I set file permissions for all users from Haskell
file-io, haskell, linux
Solution
`System.Posix.Files` in the standard unix package has POSIX files permission support. The reason `System.Directory` doesn't offer such functionality is for portability.
Problem
I am trying to achieve the same as `sudo chmod 755 myfile` would. I found `getPermissions` and `setPermissions` in System.Directory, but that only allows me to set permissions for the current user (in my case root). Do equivalent functions exist that apply to all users or is the only viable option to use a `rawSystem` call, which I consider a bit unclean?