acl

package
v0.0.0-...-3a6b04a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(path string, owner *windows.SID, group *windows.SID, access ...windows.EXPLICIT_ACCESS) error

Apply performs both Chmod and Chown at the same time, where the filemode's owner and group will correspond to the provided owner and group (or the current owner and group, if they are set to nil)

func Chmod

func Chmod(path string, fileMode os.FileMode) error

Chmod changes the file's ACL to match the provided unix permissions. It uses the file's current owner and group to set the ACL permissions.

func Chown

func Chown(path string, owner *windows.SID, group *windows.SID) error

Chown changes the owner and group of the file / directory and applies a default ACL that provides Owner: read, write, execute Group: read, execute Everyone: read, execute

To set custom permissions, use Apply or ApplyCustom instead directly

func Mkdir

func Mkdir(path string, access ...windows.EXPLICIT_ACCESS) error

Mkdir creates a directory with the provided permissions if it does not exist already If it already exists, it just applies the provided permissions

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL