Ezsetfacl.sh - Mini configuration agent, setfacl across multiple files

-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)

Ah, well...indeed. Basically, these three owners are volatile...I have one for EM (which is pretty static), one for databases ( ~oracle gets "rm -rf"-ed about twice annually), and one for AS (~oracleas gets "rm -rf"-ed twice annually, but on a different 'schedule' if we can call it that).

Similar Messages

  • Does a Flash library symbol search extension exist that can search across multiple files?

    Hi, I'm working on a large animation project with an extensive symbol library that exists across multiple files. I would like to know if such a tool exists that can search between all of these files for specific symbols. This would save me a great deal of time and I would be very grateful for any suggestions. We are using Flash CS5 primarily. Thanks.

    Thanks! I appriciate you confirming this for me

  • Splitting across multiple files

    I am creating large, image-heavy documents, in the zone of 40+ pages with at least 10-11 embedded PDF files (equations from LaTexiT and images from Grapher, mostly) per page. The individual files are not large, but having so many seems to make opening the files a very slow process.
    I could save each of my sections as a separate file, as I usually only need one section at a time, but I'd be sad to lose things like self-updating page counts and page numbers. But is it possible to split large Pages documents across multiple files, at least for that sort of purpose? I've seen PDF files that do this (textbooks and other enormous documents).

    No, I'm afraid that is not possible. You could save them as individual files and then update the first page number in each document manually though.

  • Updating a variable across multiple files in a book

    Hi guys,
    I have a book file with multiple files (prelim pages and chapters). In the header of each prelim page and chapter file I'm using a variable. How can I make a simple change to the variable and update it across all files that use it? I've tried looking through the menus and opening all files but I can't see any method of making a global change.
    Advice appreciated.
    Cheers
    Carl

    How about File > Import formats …
    1. make a new file (source) where you define just the variable you want to copy to other files (targets)
    2. import that variable from the source file into the target files
    When all the target files are in a .book, you can select them in the book and then use File > Import formats. Otherwise, the same command from inside each target – but you can always make a dummy .book referencing all the target files.
    Setting up a source file first means you can work with only the variables you want to, if you have some that change per chapter and others that stay the same throughout the book.
    N
    [ps] Watch out for the default behaviour of the Import from Document pulldown, which sets itself determinedly to "current file"

  • How do i extract annotated pages across multiple files?

    I use Acrobat XI standard. I am a lawyer doing cases with multiple PDFs. I annotate the pdfs when a witness speaks to a page. How can I extract pages that I have made annotation on into a separate file?

    Hi Charlie Manzoni,
    Please refer this thread link (Converting a single 2 page doc into 2 separate 1 page docs ) where i have posted the procedure to extract pages from a pdf into a separate file.
    Please revert back if you have any query or need any further assistance on this issue.
    Regards,
    Rahul Tyagi

  • Changing Styles Across Multiple Files

    We have a lengthy catalog that we build in spreads. We don't make a book file, since the pages are all sent individually to our prepress people, and we also have pages that copywriters use to create the copy in the first place.
    Every piece of copy in this book is set up on character and paragraph styles. We start with a master template, so all the styles have the same names.
    We're almost done with the whole thing, and then today we find out from the Office of Secret Self-Important Ivory Towers that they have chosen new fonts for us and not told us what they are until now, so now we have to change every single font from the top down.
    Is there any way to synchronize the styles without building a book file? It's not the end of the world if that's what we have to do, but it won't work for the writers' files, and it's going to require a lot of manual tweaking to keep it from shuffling pages everywhere.
    We're on CS4, by the way.

    If all of your documents share the same style names, then you can do this relatively easily without using the book features.
    Although it is easier to do this by using the book features, what you need to do is open the document that you consider to be your source or master document. Make all the style changes as needed and save it.
    Open the next document.
    Go to the Paragraph Style panel
    In the panel menu, select Load All Text Styles... (this loads Paragraph and Character styles)
    Select the master document.
    Allow the incoming styles to override any existing styles of the same name.
    Cleanup any text as needed, save and close.
    Repeat for all other documents.
    If you have object styles, use the same proceedure with the object style panel.
    If you have swatches that change, you can Save Swatches from the master file, then Load Swatches in the other files.
    Note: this would be far easier to do by temporarily adding all the documents to a book (be sure to disable any auto page numbering in the book) and then Sync from the book panel.
    HTH
    -mt

  • Assigning default applications across multiple file types

    I prefer to use VLC to watch video files, but I keep running into different file types that are still set to have Quicktime open them. Is there any way to quickly set whatever file types I want to open by default with VLC? Or any program for that matter?

    Has anyone noticed that recently this doesn't always seem to work?
    I have a webloc file for BBC Radio 4. (*) I have set the "Open with" to open it with Real Player, rather than Safari (which is set as the default browser). When the file is double clicked, it still opens with Safari.
    This behaviour seems to since 10.5.8, since I had a Hot Key set to open the file and it worked fine before.
    Any ideas?
    (*) this url should display on one line:
    http://www.bbc.co.uk/radio/aod/mainframe.shtml?http://www.bbc.co.uk/radio/aod/ra dio4.shtml?listen

  • Sample accurate editing across multiple files

    I'm editing a podcast and need to use zero-crossing points to make inaudible edits.
    I have two vocal tracks, in sync, and want to be able to select zero-crossings in one and then ripple delete (e.g. to remove a word), applying that same edit to the other track so that everything stays in sync.
    Obviously I can do this by selecting both tracks and using the timeslice tool - but that won't find zero crossings. I can find the crossings in the wavefile editor, but I don't know how to copy those edits to more than one track.
    I'm sure this is obvious - I feel as if I'm missing something. I need help.

    Here's just a thought on how I would approach that.
    In the multi-track, I'd pan one track hard left and the other hard right, then export as a single stereo track. Then bring that back in as an audio file project, make all the edits you want, save it, then split the stereo track back into two mono tracks at the end of the edit process.
    Hope that'll help!
    Matt

  • How do you configure the DAM so it can be shared across multiple CQ instances?

    How do you configure the DAM so it can be shared across multiple CQ instances?

    You can use shared datastore http://dev.day.com/content/kb/home/Crx/CrxSystemAdministration/HowToCombineTheDatastoreToP reserveDiskSpace.html multiple CQ instance will use same file system to share asset
    clustering http://dev.day.com/docs/en/crx/current/administering/cluster.html multiple node will share repository.
    But you can not have something like one DAM and then have different CQ instance pointing to it (As not everything goes in to one location in file system)
    Yogesh

  • How do I configure my contacts to be shared across multiple emails?

    How do I configure my iPhone6 contacts to be shared across multiple emails accounts?

    By interface I simply mean connected to the contacts.  I have two different gmail accounts, one that uses the apple mail app and the new one that launches from the gmail icon that I downloaded from the app store.  The new one doesn't recognize the contacts.

  • Sharing an iTunes Library across multiple user account and a network.

    Sharing an iTunes Music Library across multiple user accounts.
    Hello Everybody!
    Firstly, this was designed to be run in Mac OS X 10.4 Tiger. It will not work with earlier versions of Mac OS X! Sorry.
    Here's a handy tip for keeping your hard drive neat and tidy, it also saves space, what in effect will be done is an iTunes music library will be shared amongst multiple users on the same machine. There are advantages and disadvantages to using this method.
    • Firstly I think it might be worthwhile to state the advantages and disadvantages to using this approach.
    The advantages include:
    - Space will be saved, as no duplicate files will occur.
    - The administrator will be able to have complete control over the content of the iTunes library, this may be useful for restricting the content of the Library; particularly for example if computer is being used at and education institution, business or any other sort of institution where things such as explicit content would be less favorable.
    - The machine will not be slowed by the fact that every user has lots of files.
    The disadvantages to this system include.
    - The fact that the account storing the music will have to be logged in, and iTunes will have to be active in that account.
    - If the account housing the music is not active then nobody can use the iTunes library.
    - There is a certain degree of risk present when an administrator account must be continually active.
    - Fast User Switching must be enabled.
    Overview:
    A central account controls all music on the machine/network, this is achieved by storing iTunes files in a public location as opposed to in the user's directory. In effect the system will give all users across the machine/network access to the same music/files without the possibility of files 'doubling up' because two different users like the same types of music. This approach saves valuable disk space in this regard and may therefore prove to be useful in some situations.
    This is a hearty process to undertake, so only follow this tutorial if you're willing to go all the way to the end of it.
    Process:
    Step 1:
    Firstly, we need to organize the host library, I tidied mine up, removing excess playlists, random files, things like that. this will make thing a bit easier in the later stages of this process.
    Once the library is tidied up, move the entire "iTunes" folder from your Home directory to the "//localhost" directory (The Macintosh HD) and ensure that files are on the same level as the "Applications", "Users", "Library" and "System" directories; this will ensure that the files in the library are available to all users on the machine (this also works for networks)
    Optionally you can set the ownership of the folder to the 'administrator' account (the user who will be hosting the library.), you may also like to set the permissions of 'you can' to "Read & Write" (assuming that you are doing this through the user who will host the library); secondly you should set the "Owner" to the administrator who will be hosting the library and set their "access" to "Read & Write" (this will ensure that the administrator has full access to the folder). The final part of this step involves setting access for the "Others" tab to "Read Only" this will ensure that the other users can view but not modify the contents on the folder.
    Overview:
    So far we have done the following steps:
    1. Organized the host library.
    2. Placed the iTunes directory into a 'public' directory so that other users may use it. (this step is essential if you plan on sharing the library across multiple accounts on the same machine. NOTE: this step is only necessary if you are wanting to share you library across multiple accounts on the same machine, if you simply want to share the music across a network, use the iTunes sharing facility.
    3. set ownership and permissions for the iTunes music folder.
    Step 2:
    Currently the administrator is the only user who can use this library, however we will address this soon. In this step we will enable iTunes music sharing in the administrator's account, this will enable other users to access the files in the library.
    If you are not logged in as the administrator, do so; secondly, open iTunes and select "Preferences" from the "iTunes" menu, now click the "Sharing" tab, if "share my library on my local network" is not checked, the radio buttons below this will now become active, you may choose to share the entire libraries contents, or share only selected content.
    Sharing only selected content may be useful if their is explicit content in the library and minors use the network or machine that the library is connected to.
    If you have selected "share entire library" go to Step 3, if you have selected share "share selected playlists" read on.
    After clicking "share selected playlists" you must then select the playlists that you intend to share across your accounts and network. Once you have finished selecting the playlists, click "OK" to save the settings.
    Overview:
    In this step we:
    1. Enabled iTunes sharing in the administrator's account, now, users on the local network may access the iTunes library, however, users on the same machine may not.
    Step 3:
    Now we will enable users on the same machine to access the library on the machine. This is achieved by logging in as each user, opening iTunes, opening iTunes preferences, and clicking "look for shared music". now all users on the machine may also access the library that the administrator controls.
    This in effect will mean that the user will not need to use their user library, it will be provided to them via a pseudo network connection.
    As a secondary measure, I have chosen to write a generic login script that will move any content from the user's "Music/iTunes/iTunes Music" directory to the trash and then empties the user's trash.
    This is done through the use of an Automator Application: this application does the following actions.
    1. Uses the "Finder" action "Get Specified Finder Items"
    1a. The user's "~/Music/iTunes/iTunes Music" folder
    2. Uses the "Finder" action "Get Folder Contents"
    3. Uses the "Finder" action "Move to Trash"
    4. Uses the "Automator" action "Run AppleScript"
    4a. with the following:
    on run {input, parameters}
    tell application "Finder"
    empty trash
    end tell
    return input
    end run
    IMPORTANT: Once the script is adapted to the user account it must be set as a login item. in order to keep the script out of the way i have placed it in the user's "Library" directory, in "Application Support" under "iTunes".
    Overview:
    Here we:
    1. Enabled iTunes sharing in the user accounts on the host machine, in effect allowing all users of the machine to view a single iTunes library.
    2. (Optional) I have created a login application that will remove any content that has been added to user iTunes libraries, this in effect stops other users of the machine from adding music and files to iTunes.
    Step 4:
    If it is not already enabled, open system preferences and enable Fast User Switching in Accounts Options.
    Summary:
    We have shared a single iTunes library across multiple user account, while still allowing for network sharing. This method is designed to save space on machines, particularly those with smaller hard drives.
    I hope that this hint proves to be helpful and I hope everybody will give me feedback on my process.
    regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme   Mac OS X (10.4.6)   iWork & iLife '06, Adobe CS2, Final Cut Pro. Anything and Everything!!!

    how to share music between different accounts on a single computer

  • How do I stop games from syncing across multiple devices?

    Hi there,
    My kids all have their own ipads (super big blessing from a grandparent).  My husband and I each have one as well.  We like to play some of the same games, and sometimes the game progress syncs between our devices.  Eg. We like to play Disney's Frozen Free Fall game, and for some reason, my ipad doesn't sync to my husband's.  When my kids asked for the game on their ipads, however, the games automatically synced to my husband's, so I didn't let them keep it (I didn't want them using all his items/lives).
    My kids all like to play Angry Birds Transformers, and with the latest update to that game, their games are all suddenly connected to each other (they all have the same characters, number of gems, etc.).
    How do these games sync (game center, icloud, etc.)?  Does anyone know how to disable the feature so that our games do not sync across multiple devices?  I would like us to not be sharing the same game progress.  We all share one itunes account.
    Thanks so much!
    (If it helps, I have the ipad2, my kids have ipad mini 2's, and my husband has the ipad air.)

    We all share one itunes account.
    This would  be why the syncing occurs. Until a more knowledgeable person comes   by ...
    You can have one, two or three apple id accounts per idevice. Assign a second apple id to all the kids machines. Same or multiple apple ids. depending on how you want the game to act. Does a family account differ?  delete the game from the current apple id.  Install the game on the new apple id ( or apple ids ).
    Look into family sharing:
    https://www.apple.com/icloud/family-sharing/
    Robert

  • How to Configure the Communication among Multiple OpenMQ Servers

    Hi,
    My application is distributed across multiple machines available in the LAN.
    Components running on one machine can only communicate to OpenMQ server running on same machine.
    I want to run OpenMQ server on all the machines where components of my application is running.
    I also want a way of communication between all OpenMQ servers so that OpenMQ server exchange messages among them to transfer message to destination component running on any of the machines in the LAN.
    How can i configure two OpenMQ servers to communicate each other?
    please help with sample configuration or example.
    Thanks & regards,
    Pawan Modi

    Hi Pawan,
    It sounds like you are asking how to configure a cluster of Open Message Queue brokers.
    There's a general explanation of broker clusters at
    [http://docs.sun.com/app/docs/doc/820-6424/aerdj?a=view|http://docs.sun.com/app/docs/doc/820-6424/aerdj?a=view]
    Details of how to configure them are given at
    [http://docs.sun.com/app/docs/doc/820-6740/aeohv?a=view|http://docs.sun.com/app/docs/doc/820-6740/aeohv?a=view]
    Nigel

  • I want to set up a home network to be able to watch my movies and litsen to music across multiple platforms without keeping my laptop connected.

    I want to set up a home network to be able to watch my movies and litsen to music across multiple platforms.  I have movies purchased from itunes as well as movies from my DVD collection that i converted to an .m4v format.  I currently have these movies stored on an external harddrive. To watch a movie on my apple tv I have to ensure my external hard drive is connected to my macbook pro, then play the movie on my macbook pro and "mirror" it to my apple tv.
    Ideally I would like to be able to watch movies from my collection without having to have my laptop on and work from that.  Is it possible to navigate my collection from my Apple TV and play it on my Apple TV.  My macbook pro is the machine I primarily use for work and school it is quite the protological nuissance to have to hook all that up everytime I want to watch a movie.
    My thoughts are that I could take my old dekstop pc, attach an external hard drive to that and make that my "media storage".  If I were to do that would I then be able to watch movies as well as select which movie I want to watch from my library through my apple TV without my macbook pro being in the equation?  Or if I should desire to watch a movie from my library through my Macbook Pro, Iphone 4s, and ipad is that possible?  I basically want to set up my library to be accessible from any of my devices.
    My devices are; the previously mentioned Apple Tv, macbook pro, iphone 4s, ipad 3. I also have a desktop PC running windows 7, xbox 360 and playstation 3 (the xbox and PS3 would be nice if they could too but wouldnt break my heart as they are my roommate's and not mine so I rarely use them.)
    Thank you for any help/advice you guys may have!

    atv's can only access media from
    1. a computer which is turned on running itunes
    2. the internet
    no other options
    and NAS's which say they can work as itunes libs don't work

  • Does lion server support a single email address across multiple devices??

    I am looking to move from an outdated Microsoft Exchange Server 2003 to OS X Lion Server but I am unsure as to how Lion will handle email. I do not want to spend money on a new windows server if I can get a Mac Mini Server to do the job. I am a very small business with a number of email accounts for a couple employees and need access to email and calendar from both the office iMac's and my Macbook Pro when on the road. My IT guy says I need Exchange but he's been off base on a few other items recently and I wanted to check with other sources.
    I have 2 new iMac's, a MacBook Pro, an iPad1 and and iPhone4 on the mac side of things and 2 windows computers running XP. I would get rid of the windows computers completely if not for my CAD program which runs best not in a virtual machine mode.
    How well will email and calendar entries sync across devices?

    I have a very similar setup at my office. Lion Server will push email, calandar, contacts to all of your apple product with out a hitch.
    As far the Windows XP machines, you can access email over IMAP with Thunderbird, and calandars via sunbird or the built in web app.
    I would ditch the exchange server move to Mac OS X Server, and never look back.
    God Luck!
    PS. All of your devices will be in sync all the time.
    Shore answer:
    Does lion server support a single email address across multiple devices??
    Yes.

Maybe you are looking for

  • Payment run issue

    Hi, When payment run of a doc for 2009 is carried out cheque is printed but clearing no. has not been assigned in system. Please let me know what needs to be done in this situation.

  • Box not working, told must wait 12 days for engine...

    I have a very old BT Vision box and over the last few weeks it's been slowing dying.  At least three times it completely erased all the recordings saved.  We would re-set it to factory settings and just carry on using it, but after about a week it wo

  • Reg: lot size and replenishment lead time

    1. please explain about lot size and replenishment lead time. 2. please also explain about consumption based planing and in steps explain how to perform manual and automatic reorder point(transc code please)

  • Users belonging to multiple groups

    What will happen if I attempt to create a policy with two different groups each with different rights but a single user is a member of both groups? If I apply the policy to a document where one group cannot print and the other can, will the user that

  • Unable to change tracks on my stereo after upgrading to iOS 6

    After upgrading to iOS 6 yesterday I've noticed a problem playing my music through Bluetooth on my Alpine car stereo.  It still plays but I am unable to change tracks with the stereo, I have to manually do it on my iPhone.  This is a problem, any ide