darrenldl

ezsetfacl.sh options

Jan 28th, 2014
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. -Interface and usage-
  2.  
  3. Possible options :
  4. $ ./ezsetfacl.sh -h
  5. Usage : ./ezsetfacl.sh [OPTIONS] [filelist]
  6.  
  7. Options :
  8. -a, --apply apply rules
  9. -d, --timestamp prepend a line for data and time
  10. -g, --generate generate commands
  11. -h, --help show help message
  12. -t, --test check errors only
  13. -s, --stat show statistics
  14.  
  15. --cw, --commentedwarning show commented warning text messages in generate mode,
  16. regardless of whether apply mode is chosen
  17. --ncw, --nocommentedwarning do not show commented warning (default)
  18. --w --warning show warning text messages(default),
  19. only when only apply mode is chosen
  20. --nw, --nowarning do not show warning text messages,
  21. only when only apply mode is chosen
  22. --filename_auto_stitch adds '\' automatically to file names with spaces if not already
  23. Warning: auto_stitch will render individual permissions
  24. specified in @RESTRICT useless, as the permissions
  25. are stitched into file name as well
  26.  
  27. --example show exampls
  28. --debug show processed lines, may not be fully functional
  29. --tea tea
  30.  
  31.  
  32. --apply : Read file list and executive the rules
  33. --timestamp : Prepends "# $(date +%H\:%M\ %d/%m/%Y)" to output
  34. --generate : Generate the "setfacl" commands based on filelist without executing it. Prepends "#!/bin/bash" to output
  35. --help : Display help message
  36. --test : Only check errors, will not generate or apply rules. Cannot be combined with --apply or --generate.
  37. --stat : Show statistics
  38. --commentedwarning : show commented warning text messages in generate mode, regardless of whether apply mode is chosen
  39. --nocommentedwarning : do not show commented warning, default behaviour
  40. --warning : show warning text messages, if and only if apply mode (or test mode) is chosen, default behaviour
  41. --nowarning : do not show warning text messages at all
  42. --debug : For debugging
  43. --tea : tea
  44. --tea_moving : tea
  45.  
  46. Notes :
  47. --apply and --generate can be used together, and the rules will be applied and generated to output as well.
  48.  
  49. Possible use :
  50.  
  51. Generate and use it later, for instance, on other machines
  52. ./ezsetfacl.sh -g filelist > fileperm.sh
  53. chmod u+x fileperm.sh
  54. ./fileperm.sh
Advertisement
Add Comment
Please, Sign In to add comment