diff --git a/tldr/linux/smbcacls b/tldr/linux/smbcacls new file mode 100644 index 00000000..02f06df0 --- /dev/null +++ b/tldr/linux/smbcacls @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# smbcacls + +> View and manipulate Windows ACLs on SMB shares. +> Part of the Samba suite. +> More information: . + +- Display the ACLs for a file or directory on a remote SMB share: + +`smbcacls //{{server}}/{{share}} {{path/to/file_or_directory}} --user {{domain\username}}%{{password}}` + +- Set a new ACL for a file on a remote SMB share (replace `"ACL:..."` with a valid Windows ACL specification): + +`smbcacls //{{server}}/{{share}} {{path/to/file}} --user {{domain\username}}%{{password}} "ACL:{{DACL}}"` + +- Remove all existing ACL entries and set a new ACL: + +`smbcacls //{{server}}/{{share}} {{path/to/file}} --user {{domain\username}}%{{password}} "RESET" "ACL:{{DACL}}"` + +- Specify an alternative workgroup (or domain) and have the program prompt for a password interactively: + +`smbcacls //{{server}}/{{share}} {{path/to/file}} --user {{username}} --workgroup {{workgroup}}` diff --git a/tldr/pre-commit b/tldr/pre-commit index 318a7461..4a61d766 100644 --- a/tldr/pre-commit +++ b/tldr/pre-commit @@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Clean pre-commit cache: `pre-commit clean` + +- Update pre-commit config file to the latest repos' versions: + +`pre-commit autoupdate`