Script to take away the acl's for suffix .doc .ppt .xls

for a better understandin for wath I'm looking
we have permissions problems with saving from microsoft office 2003 + 2007 on a server volume (osx server 10.5.5).
if a user saves a document one a share, there are added some strange acl like everyone and stuff, and with every 'ctrl+save' there are duplicated…
more information you will find in this link http://discussions.apple.com/thread.jspa?messageID=8073847
http://discussions.apple.com/message.jspa?messageID=9280526
for this reason I tried to write a .sh script which a liked to use as a folderaction script (automator)
or let it run every 10 minutes with Lingon
if I call the .sh in the app. terminal it seams to work, even if there shows up some error message for each founded file
"chmod: Failed to clear ACL on file *.doc: No such file or directory"
with the automator, this script doesn't work, I guess it is because the failed message …
the same behavior with the Lingon tool…
there is the hole script
#!/bin/sh
pfad="/Volumes/datatrunk/test/"
cd "$pfad"
find . -name "*.xls" -exec chown fileserver {} \;
find . -name "*.xls" -exec chmod 755 {} \;
find . -name "*.xls" -exec chmod -N *.xls {} \;
find . -name "*.xls" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.xls" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.doc" -exec chown fileserver {} \;
find . -name "*.doc" -exec chmod 755 {} \;
find . -name "*.doc" -exec chmod -N *.doc {} \;
find . -name "*.doc" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.doc" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.ppt" -exec chown fileserver {} \;
find . -name "*.ppt" -exec chmod 755 {} \;
find . -name "*.ppt" -exec chmod -N *.ppt {} \;
find . -name "*.ppt" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.ppt" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.pdf" -exec chown fileserver {} \;
find . -name "*.pdf" -exec chmod 755 {} \;
find . -name "*.pdf" -exec chmod -N *.pdf {} \;
find . -name "*.pdf" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
find . -name "*.pdf" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
any help would be grateful

it's exactly what going on !
yes, it's an osx server 10.5.5 with 4 shares with different ACL settings
well I don't know use watchpaths how does it works ?
that's the script which the lingon.app for me build.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.acl_script.kunden</string>
<key>ProgramArguments</key>
<array>
<string>/Volumes/datatrunk/aclscripte/acl_scriptkunden.sh</string>
</array>
<key>StartInterval</key>
<integer>180</integer>
</dict>
</plist>
would it work like this… but how can I handle the 4 different scripts ?!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>aclright</string>
<key>ProgramArguments</key>
<array>
<string>/Volumes/datatrunk/aclscripte/aclscript.sh</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Volumes/datatrunk/share1</string>
</array>
</dict>
</plist>

Similar Messages

  • Office 2003+2007, script to take away the acl's for suffix .doc .ppt .xls

    for a better understanding…
    we have permissions problems with saving from microsoft office 2003 + 2007 on a server volume (osx server 10.5.5).
    if a user saves a document one a share, there are added some strange acl like everyone and stuff, and with every 'ctrl+save' there are duplicated…
    more information you will find in this link http://discussions.apple.com/thread.jspa?messageID=8073847
    for this reason I tried to write a .sh script which a liked to use as a folderaction script (automator)
    I would like use crontab, but seams that doesn't work under 10.5 !!!
    if I call the .sh in the app. terminal it seams to work, even if there shows up some error message for each founded file
    "chmod: Failed to clear ACL on file *.doc: No such file or directory"
    the mkdir gugu I putted in there to make sure, that the script is going in the correct dir
    with the automator, this script doesn't work, I guess it is because the failed message …
    there is the hole script
    #!/bin/sh
    pfad="/Volumes/datatrunk/test/"
    cd "$pfad"
    find . -name "*.xls" -exec chown fileserver {} \;
    find . -name "*.xls" -exec chmod 755 {} \;
    find . -name "*.xls" -exec chmod -N *.xls {} \;
    find . -name "*.xls" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.xls" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.doc" -exec chown fileserver {} \;
    find . -name "*.doc" -exec chmod 755 {} \;
    find . -name "*.doc" -exec chmod -N *.doc {} \;
    find . -name "*.doc" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.doc" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.ppt" -exec chown fileserver {} \;
    find . -name "*.ppt" -exec chmod 755 {} \;
    find . -name "*.ppt" -exec chmod -N *.ppt {} \;
    find . -name "*.ppt" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.ppt" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.pdf" -exec chown fileserver {} \;
    find . -name "*.pdf" -exec chmod 755 {} \;
    find . -name "*.pdf" -exec chmod -N *.pdf {} \;
    find . -name "*.pdf" -exec chmod +ai "tbsxgl allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    find . -name "*.pdf" -exec chmod +ai "fileserver allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,writesecurity,chown,file_inherit,directoryinherit" {} \;
    mkdir gugu
    any help would be grateful

    Hi
    Cron does still work in 10.5, however its better if you use launchd. If you're not comfortable with launchctl then you could use Lingon instead? This provides a graphical interface for launchd and is freely available. Google for an appropriate download site or use this link:
    http://mac.softpedia.com/get/System-Utilities/Lingon.shtml
    For assistance with the script you could cross-post over in the Technologies Forum? You might get a better/quicker response:
    http://discussions.apple.com/category.jspa?categoryID=162
    http://discussions.apple.com/forum.jspa?forumID=724
    http://discussions.apple.com/forum.jspa?forumID=735
    Tony

  • Why did they take away the playlist feature for movies and tv shows?

    The subject line pretty much sums it up but does anyone know why they took it away? It was seriously the greatest thing ever with my kid's tv shows. I could just turn on the playlist and they could watch a few episodes back to back without having to mess with the remote.

    I don't think they have.
    A recent software update may have reset your Settings which by default is playlists only for music.
    Check AppleTV Setting menus and enable playlists for all not just music.
    Let me know if you can't find the setting in the menu.
    AC

  • Why did you take away adobe flash player for mobile

    you people are the worst people ever and pathetic don't you people realize that 90% of people have a cell phone and like very much to play on them but no here comes adobe and takes away the flash player for mobile and makes all of people very unhappy but who cares about the people especially adobe idiots as long as they are getting paid for disappointing thousands of people they do not care what they think or do even if it does hurt the people that use the adobe flash player alot I am very pissed a I have alot of games on my phone like I love playing but of course thanks to the jerks at adobe I cant play them because I need adobe flash player for mobile but cant get it I want something done about this don't care how long it takes but it needs to be fixed not only for me but for the other people that are pissed off just like me I have a windows 8.1 phone I want to hear from someone asap about this

    An Update on Flash Player and Android

  • Can't update to ios7 on ipod touch 4th generation on this ipod. had facetime but now it requires ios7 so i have it no more and used it a lot with family. would have to buy new ipod. apple should not take away the capabilities you have already paid for

    found out i can't update ipod touch 4th generation to ios7 which is now required to use facetime. have used facetime for several years with family now can't use. Apple should not take away the capabilities you already have paid for!!

    No correct, you do not need iOS for FaceTime. You only needed to update to iOS 6.1.6.
    Unable to make or receive FaceTime calls after April 16, 2014
    If you are having problems:
    iOS: Troubleshooting FaceTime                  

  • I have marked some video cuts for removing, and want to activate them again and take away the marking (a red line over the thumbnails). How do I do that?

    I have marked some video cuts for removing, and want to activate them again and take away the marking (a red line over the thumbnails). How do I do that?

    In the middle tool bar, near the Reject Tool that you used to make the red marks, there should be an "Un-Mark" Tool. Select this tool and you can erase the red marks. It should look like an empty star.
    YOu can select "View Rejected Only" to make sure you get them all.

  • Why did they take away the "Open In New Tab"option in Top Sites, Bookmarks, and History?

    Why did they take away the "Open In New Tab"option in Top Sites, Bookmarks, and History? This very annoying.

    Seriously - what could they have possibly been thinking? Mozilla, please tell us this was some kind of mistake. Accessing our bookmarks in FF-mobile is just plain bad as a user experience. And now without "Open In New Tab" we are supposed to drill down to our bookmarks for every tab we want to open? FF-mobile is almost useless without "Open In New Tab". Please restore "Open In New Tab" for bookmarks, thanks.

  • Why did you take away the Mitch emoji

    WWhy did you take away the Mitch emoji. I am so disappointed. The emojis are yellow too! Are you trying to go for the Simpsons? Ugh.i

    Mitch didn't like being an emoji.
    Seriously, this is a user-to-user technical support forum. You're not addressing Apple here.
    Submit your feedback to Apple here:
    http://www.apple.com/feedback

  • Nternal ERROR: Can not find the ACL containter for object ...

    We are using OWB 10.2.0.3. We tried to introduce two basic roles to prevent user A from accessing certain parts of our project. Somehow (I cannot really say how) we ended up in the error message below whenever we want to modify the security properties of an object.
    Neither in metalink nor in the oracle forums I could find any hint about that error.
    Can anyone help??
    Thanks in advance, Maren
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
    Internal ERROR: Can not find the ACL containter for object:CMPMap@1ba11bc/id=2023180/owningFCO=2023180/proxyFor=(CMPMapGen@1a4d5c6/id=2023180/stname=CMPBatchMap/pname=LOAD_XML/lname=LOAD_XML/status=CLEAN/committed=true/persistent=true/propsLoaded=false)
         at oracle.wh.repos.pdl.security.SecurityPolicyManager.getAccessCharMapOfPrivilegeOwner(SecurityPolicyManager.java:166)
         at oracle.wh.repos.impl.foundation.CMPElement.getAccessCharMapOfPrivilegeOwner(CMPElement.java:2743)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.hasPrivilege(OWBSecurityImpl.java:820)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.internalSecurityCheck(OWBSecurityImpl.java:1449)
         at oracle.wh.repos.pdl.security.OWBSecurityImpl.securityCheck(OWBSecurityImpl.java:649)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:660)
         at oracle.wh.repos.pdl.security.SecurityModuleImpl.securityCheck(SecurityModuleImpl.java:623)
         at oracle.wh.ui.common.WhSecurityHelper.securityCheck(WhSecurityHelper.java:112)
         at oracle.wh.ui.console.commands.EditObjectCmd.performAction(EditObjectCmd.java:107)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Hi Maren
    Like you I get this error and do not know what steps caused it.In my scenario I have some mappings that give the error and some that do not - the repository user gets the error but the repository owner does not.
    Thinking back over the last number of months (as this project contains 7-8 months od work - we do have exports of the project) I think the ones giving the error are those that perhaps were copied from another to start the coding but I cannot be sure.
    I have read the metalink note mentioned above as well as the the queries posted by Oleg and yourself. The queries posted are slightly different, one has a where clause
    fco.classname = 'CMPACLContainer' (Maren's)
    and the other
    fco.classname='CMPMap' (Oleg's).
    Was this intentional Maren on your behalf for your problem to be fixed?
    We are using 10.2.0.3.33 OWB client and 10.2.0.3.0 OWB repository.
    Thanks
    Edwin

  • How can I take away the 1x1 transparent gif on my slideshows in muse?

    How can I take away the 1x1 transparent gif on my slideshows in muse?  It's showing up as a SEO error only on the pages that include slideshows. 

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    1-800-676-2775  apple support   tech support 1 800 275 2273
    If your computer is on one minute before it freezes, than you have one minute to secure your serial number.
    click the apple----->click about this Mac ------> click on version----> until you see the serial number.  You may have to do this a couple of times if it freezes before you have all the numbers.  A camera might help.
    Good Luck

  • How do I uninstall iTunes 12.0 and revert back to version 11.4, version 12.0 takes away the control of lists etc and I want it back

    how do I uninstall iTunes 12.0 and revert back to version 11.4, version 12.0 takes away the control of lists etc and I want it back

    Hi,
    Can you please expand on your issue? As far as I can see all the previous functions of 11 are in 12 albeit shown differently. Using get info to edit date is still possible, again it looks and feels different.
    JIm

  • Why did you take away the feature that allowed me to save several tabbs when i close the webbrowser?

    Why did you take away the feuatre that allowed me to save several tabbs when i close the webbrowser?

    Firefox 4 saves the previous session automatically. <br />
    You can use '''Firefox''' button > '''History > Restore Previous Session''' to get the previous session. <br />
    There is also a '''Restore Previous Session''' button on the default '''about:home''' Home page.

  • Took away the access rights for harddrive - mac os x cant boot! pleasehelp!

    i took away the access rights for harddrive - mac os x cant boot! pleasehelp!
    thank you for any help

    wow! thank u a lot!!! it worked great!
    i did this:
    A1. If the disk in question is your Mac OS X startup disk and your computer stops starting up at the blue screen, restart with the Command and S keys held down, and enter the following commands:
    mount -uw /
    chown root /
    chmod 1775 /
    exit

  • ITunes disables my Windows sounds and takes away the volume control

    I have searched and found no answer to this- others have posted this same question.
    I installed itunes and it removed my volume control from the task bar. It disabled my Windows sounds and took away the volume control from the System Tray next to clock. My media buttons no longer affect the volume either. I have to go into control panel to change my system volume.
    At first- it only happened when my daughter would plug in her iPod and use iTunes, and then after we'd reboot the computer, the volume control would come back and no longer be disabled. Each time she used iTunes, it would happen again. Then a computer restart would bring it back. Now all of a sudden, nothing brings it back. I have to go about 4-5 screens deep into Control Panel to adjust the volume there. This is ridiculous and an absolutely unacceptable side effect of iTunes.
    Does someone have an answer or do we need to delete iTunes and never again buy a crappy apple product?
    Message was edited by: sjs.chowchow

    Figured it out!
    Go to Control Panel -> Sound
    In the “Playback” tab, click on your Speakers to highlight it, then click Properties. In the “Advanced” tab, under “Exclusive Mode”, uncheck the box that says “Allow applications to take exclusive control of this device”. I restarted my computer after that, but I am not sure if you need to.
    Then you can go to your taskbar and right-click and choose “Properties”. In the “Notification Area” tab, under System icons, “Volume” is no longer grayed out and you can now check the box to make it show up down near your clock again.

Maybe you are looking for

  • Power supply part number for Cisco 2900

    I need to know what are the part numbers for installing the redundant (second) power supply.

  • XML to Oracle for Newby

    Hi, im a newby in Oracle related Stuff and want to read in several XML files into a table. In the Documentation ive found this: Working with XML Getting data into an XMLType table and column. As you may expect, there are many options available to us

  • FM for BP

    hi all,           when creating or changing a BP , what are the FM modules that would give me BP runtime information Regards.

  • SAP ECC6 sr3 upgrade error in executing MSSCONCHECK.SQL script

    Hello all,   I am facing this error which is very annoying , I am executing Prepare Upgrade script for ECC6 SR3 from SAP 4.7 Sr2 with windows 2003 server and MSSQL 2005 server as backend. I am facing below error Enter one of these options [continue]

  • Fuction Module Description

    Hi Gurus I need to know the one function module description named as "RSPC_VARIANT_DELATE" and another doubt is where i can found any function module decryption. Thanks for reply...