1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-18 00:59:12 +03:00

samba-tool: Added "ntacl" command

Added "ntacl" command to substitute "acl nt" command

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Giampaolo Lauria
2011-08-30 17:19:59 -04:00
committed by Andrew Bartlett
parent 7a609d827e
commit 6484e142dc
3 changed files with 13 additions and 7 deletions

View File

@ -37,7 +37,9 @@ from samba.netcmd import (
Option,
)
class cmd_acl_set(Command):
class cmd_ntacl_set(Command):
"""Set ACLs on a file"""
synopsis = "%prog set <acl> <file> [--xattr-backend=native|tdb] [--eadb-file=file] [options]"
@ -74,7 +76,8 @@ class cmd_acl_set(Command):
raise CommandError("Unable to read domain SID from configuration files")
class cmd_acl_get(Command):
class cmd_ntacl_get(Command):
"""Set ACLs on a file"""
synopsis = "%prog get <file> [--as-sddl] [--xattr-backend=native|tdb] [--eadb-file=file] [options]"
@ -99,10 +102,11 @@ class cmd_acl_get(Command):
acl.dump()
class cmd_nt_acl(SuperCommand):
class cmd_ntacl(SuperCommand):
"""NT ACLs manipulation"""
subcommands = {}
subcommands["set"] = cmd_acl_set()
subcommands["get"] = cmd_acl_get()
subcommands["set"] = cmd_ntacl_set()
subcommands["get"] = cmd_ntacl_get()