__acl: rename --acl to --entry for the sake of consistency, add compatibility
This commit is contained in:
parent
d1a64596fe
commit
d4bd49bbb5
4 changed files with 20 additions and 15 deletions
|
@ -28,7 +28,10 @@ acl_path="/$__object_id"
|
||||||
|
|
||||||
acl_is="$( cat "$__object/explorer/acl_is" )"
|
acl_is="$( cat "$__object/explorer/acl_is" )"
|
||||||
|
|
||||||
if [ -f "$__object/parameter/acl" ]
|
if [ -f "$__object/parameter/entry" ]
|
||||||
|
then
|
||||||
|
acl_should="$( cat "$__object/parameter/entry" )"
|
||||||
|
elif [ -f "$__object/parameter/acl" ]
|
||||||
then
|
then
|
||||||
acl_should="$( cat "$__object/parameter/acl" )"
|
acl_should="$( cat "$__object/parameter/acl" )"
|
||||||
elif
|
elif
|
||||||
|
|
|
@ -15,7 +15,7 @@ See ``setfacl`` and ``acl`` manpages for more details.
|
||||||
|
|
||||||
REQUIRED MULTIPLE PARAMETERS
|
REQUIRED MULTIPLE PARAMETERS
|
||||||
----------------------------
|
----------------------------
|
||||||
acl
|
entry
|
||||||
Set ACL entry following ``getfacl`` output syntax.
|
Set ACL entry following ``getfacl`` output syntax.
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ remove
|
||||||
|
|
||||||
DEPRECATED PARAMETERS
|
DEPRECATED PARAMETERS
|
||||||
---------------------
|
---------------------
|
||||||
Parameters ``user``, ``group``, ``mask`` and ``other`` are deprecated and they
|
Parameters ``acl``, ``user``, ``group``, ``mask`` and ``other`` are deprecated and they
|
||||||
will be removed in future versions. Please use ``acl`` parameter instead.
|
will be removed in future versions. Please use ``entry`` parameter instead.
|
||||||
|
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
|
@ -49,27 +49,27 @@ EXAMPLES
|
||||||
--default \
|
--default \
|
||||||
--recursive \
|
--recursive \
|
||||||
--remove \
|
--remove \
|
||||||
--acl user:alice:rwx \
|
--entry user:alice:rwx \
|
||||||
--acl user:bob:r-x \
|
--entry user:bob:r-x \
|
||||||
--acl group:project-group:rwx \
|
--entry group:project-group:rwx \
|
||||||
--acl group:some-other-group:r-x \
|
--entry group:some-other-group:r-x \
|
||||||
--acl mask::r-x \
|
--entry mask::r-x \
|
||||||
--acl other::r-x
|
--entry other::r-x
|
||||||
|
|
||||||
# give Alice read-only access to subdir,
|
# give Alice read-only access to subdir,
|
||||||
# but don't allow her to see parent content.
|
# but don't allow her to see parent content.
|
||||||
|
|
||||||
__acl /srv/project2 \
|
__acl /srv/project2 \
|
||||||
--remove \
|
--remove \
|
||||||
--acl default:group:secret-project:rwx \
|
--entry default:group:secret-project:rwx \
|
||||||
--acl group:secret-project:rwx \
|
--entry group:secret-project:rwx \
|
||||||
--acl user:alice:--x
|
--entry user:alice:--x
|
||||||
|
|
||||||
__acl /srv/project2/subdir \
|
__acl /srv/project2/subdir \
|
||||||
--default \
|
--default \
|
||||||
--remove \
|
--remove \
|
||||||
--acl group:secret-project:rwx \
|
--entry group:secret-project:rwx \
|
||||||
--acl user:alice:r-x
|
--entry user:alice:r-x
|
||||||
|
|
||||||
|
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
|
1
cdist/conf/type/__acl/parameter/deprecated/acl
Normal file
1
cdist/conf/type/__acl/parameter/deprecated/acl
Normal file
|
@ -0,0 +1 @@
|
||||||
|
see manual for details
|
|
@ -1,3 +1,4 @@
|
||||||
|
entry
|
||||||
acl
|
acl
|
||||||
user
|
user
|
||||||
group
|
group
|
||||||
|
|
Loading…
Reference in a new issue