Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -Interface and usage-
- Possible options :
- $ ./ezsetfacl.sh -h
- Usage : ./ezsetfacl.sh [OPTIONS] [filelist]
- Options :
- -a, --apply apply rules
- -d, --timestamp prepend a line for data and time
- -g, --generate generate commands
- -h, --help show help message
- -t, --test check errors only
- -s, --stat show statistics
- --cw, --commentedwarning show commented warning text messages in generate mode,
- regardless of whether apply mode is chosen
- --ncw, --nocommentedwarning do not show commented warning (default)
- --w --warning show warning text messages(default),
- only when only apply mode is chosen
- --nw, --nowarning do not show warning text messages,
- only when only apply mode is chosen
- --filename_auto_stitch adds '\' automatically to file names with spaces if not already
- Warning: auto_stitch will render individual permissions
- specified in @RESTRICT useless, as the permissions
- are stitched into file name as well
- --example show exampls
- --debug show processed lines, may not be fully functional
- --tea tea
- --apply : Read file list and executive the rules
- --timestamp : Prepends "# $(date +%H\:%M\ %d/%m/%Y)" to output
- --generate : Generate the "setfacl" commands based on filelist without executing it. Prepends "#!/bin/bash" to output
- --help : Display help message
- --test : Only check errors, will not generate or apply rules. Cannot be combined with --apply or --generate.
- --stat : Show statistics
- --commentedwarning : show commented warning text messages in generate mode, regardless of whether apply mode is chosen
- --nocommentedwarning : do not show commented warning, default behaviour
- --warning : show warning text messages, if and only if apply mode (or test mode) is chosen, default behaviour
- --nowarning : do not show warning text messages at all
- --debug : For debugging
- --tea : tea
- --tea_moving : tea
- Notes :
- --apply and --generate can be used together, and the rules will be applied and generated to output as well.
- Possible use :
- Generate and use it later, for instance, on other machines
- ./ezsetfacl.sh -g filelist > fileperm.sh
- chmod u+x fileperm.sh
- ./fileperm.sh
Advertisement
Add Comment
Please, Sign In to add comment