Gestion des ACL #3

Open
opened 2024-02-11 21:52:47 +01:00 by Demoulin Erik · 0 comments

synoacltool --help
Usage: synoacltool

SYNOPSIS
synoacltool -h
synoacltool -check PATH [ACL Perm]
synoacltool -get PATH
synoacltool -getace PATH
synoacltool -get-perm PATH USERNAME
synoacltool -add PATH [ACL Entry]
synoacltool -replace PATH [ACL Entry Index] [ACL Entry]
synoacltool -get-archive PATH
synoacltool -set-archive PATH [ACL Archive Option]
synoacltool -del-archive PATH [ACL Archive Option]
synoacltool -del PATH [ACL Entry Index]
synoacltool -del PATH
synoacltool -copy PATH_SRC PATH_DST
synoacltool -set-owner PATH [user|group] NAME
synoacltool -set-eadir-acl PATH
synoacltool -enforce-inherit PATH
synoacltool [-stat|-cstat|-fstat|-lstat|-utime] PATH

-h: show help 
-check: check acl permission of file 
-get: get syno acl of file 
-getace: get syno ACEs with uid/gid of file 
-get-perm: extract windows permission from acl or linux permission 
-add: add syno ace into file 
-replace: replace specified ace by index number 
-del: delete syno acl of file 
-get-archive: get ACL archive bit  
-set-archive: set ACL archive bit  
-del-archive: delete ACL archive bit  
-stat, -cstat, -lstat, -fstat: get stat/archive bit 
-utime: set current time into file 
-copy: copy ACL from source to destination, only works when ACL exists 
-set-eadir-acl: set ACL for EA dir 
-enforce-inherit: enforce ACL inheritance 

OPTIONS
ACL Entry Index: >= 0
ACL Option: [inherit|single]
ACL Archive Option: is_inherit,is_read_only,is_owner_group,has_ACL,is_support_ACL
ACL Entry: [user|group|owner|everyone|authenticated_user|system]:name:[allow|deny]:permissions:inherit mode

	Example: user:root:allow:rwx-d---RWc--:fd-- 
	Example: owner:*:allow:rwx-d---RWc--:fd-- 

	Fields 
		name: user/group name 
		ACL Perm: rwxpdDaARWcCo 
			 r: (r)ead data 
			 w: (w)rite data (create file) 
			 x: e(x)ecute 
			 p: a(p)pend data (create dir) 
			 d: (d)elete 
			 D: (D)elete child (only for dir) 
			 a: read (a)ttribute (For SMB read-only/hidden/archive/system) 
			 A: write (A)ttribute 
			 R: (R)ead xattr 
			 W: (W)rite xattr 
			 c: read a(c)l 
			 C: write a(c)l 
			 o: get (o)wner ship 

		inherit mode: fdin 
			 f: (f)ile inherited 
			 d: (d)irectory inherited 
			 i: (i)nherit only 
			 n: (n)o propagate
**synoacltool** --help Usage: synoacltool SYNOPSIS synoacltool -h synoacltool -check PATH [ACL Perm] synoacltool -get PATH synoacltool -getace PATH synoacltool -get-perm PATH USERNAME synoacltool -add PATH [ACL Entry] synoacltool -replace PATH [ACL Entry Index] [ACL Entry] synoacltool -get-archive PATH synoacltool -set-archive PATH [ACL Archive Option] synoacltool -del-archive PATH [ACL Archive Option] synoacltool -del PATH [ACL Entry Index] synoacltool -del PATH synoacltool -copy PATH_SRC PATH_DST synoacltool -set-owner PATH [user|group] NAME synoacltool -set-eadir-acl PATH synoacltool -enforce-inherit PATH synoacltool [-stat|-cstat|-fstat|-lstat|-utime] PATH -h: show help -check: check acl permission of file -get: get syno acl of file -getace: get syno ACEs with uid/gid of file -get-perm: extract windows permission from acl or linux permission -add: add syno ace into file -replace: replace specified ace by index number -del: delete syno acl of file -get-archive: get ACL archive bit -set-archive: set ACL archive bit -del-archive: delete ACL archive bit -stat, -cstat, -lstat, -fstat: get stat/archive bit -utime: set current time into file -copy: copy ACL from source to destination, only works when ACL exists -set-eadir-acl: set ACL for EA dir -enforce-inherit: enforce ACL inheritance OPTIONS ACL Entry Index: >= 0 ACL Option: [inherit|single] ACL Archive Option: is_inherit,is_read_only,is_owner_group,has_ACL,is_support_ACL ACL Entry: [user|group|owner|everyone|authenticated_user|system]:name:[allow|deny]:permissions:inherit mode Example: user:root:allow:rwx-d---RWc--:fd-- Example: owner:*:allow:rwx-d---RWc--:fd-- Fields name: user/group name ACL Perm: rwxpdDaARWcCo r: (r)ead data w: (w)rite data (create file) x: e(x)ecute p: a(p)pend data (create dir) d: (d)elete D: (D)elete child (only for dir) a: read (a)ttribute (For SMB read-only/hidden/archive/system) A: write (A)ttribute R: (R)ead xattr W: (W)rite xattr c: read a(c)l C: write a(c)l o: get (o)wner ship inherit mode: fdin f: (f)ile inherited d: (d)irectory inherited i: (i)nherit only n: (n)o propagate
Demoulin Erik referenced this issue from a commit 2024-02-11 23:18:21 +01:00
Demoulin Erik referenced this issue from a commit 2025-09-14 14:45:41 +02:00
#3
Sign in to join this conversation.
No description provided.