You are not logged in.
-Introduction-
ezsetfacl.sh can edit configuration files, can manipulate file properties(permissions, modes, attributes etc)
ezsetfacl.sh supports syntax/logical error detection in file list
The script is intended to be run as root, but for demo/testing purposes, it's run as a non-root user in this article
Current version : http://pastebin.com/JpScZMbQ http://pastebin.com/raw.php?i=JpScZMbQ(RAW)
This is the previous version : https://bbs.archlinux.org/viewtopic.php?id=173905
This version is basically an enchanced one, but this is much more functional and usable than the first one, I think it deserves a new thread
-Note-
ezsetfacl.sh is still in testing state, use "setfacl -g [filelist]" and check all generated commands yourself before actually applying permissions
-Update-
(27/2/2014) Added "chmod" block and "chown" block, modified statistics list a bit.
(28/2/2014) Added "chattr" block, added related lines to statistics list.
(15/3/2014) Added APPEND, INSERT and REPLACE blocks, mainly for configuring config files. Will add to statistics list later.
(17/3/2014) Added COMMAND block, for executing commands, no syntax checks. Will add to statistics list later. Now it's more like a configuration manager/agent thingy.
(7/5/2014) Bug fixes. Added tea.
(19/9/2014) Bug fixes. Enhanced input sanitisation, allowed file name stitching(e.g. this\ is\ a\ file), auto stitching file names is also available. Multiple <END can now be processed properly.
(20/9/2014) Added Sourceforge page.(See below)
-Notes-
Error detection still requires improvement
-Limitations-
Logical and physical option for recursive setfacl are not yet available
Sourceforge page : https://sourceforge.net/projects/ezsetfaclsh/
Detailed explanation on the options : http://pastebin.com/1QLSFPkD http://pastebin.com/raw.php?i=1QLSFPkD(RAW)
Examples : http://pastebin.com/KQcNXVSW http://pastebin.com/raw.php?i=KQcNXVSW(RAW)
Any feedback is welcome!
Last edited by darrenldl (2014-09-20 03:09:46)
Offline