How to preserve group ownership

I recently created a group called "special", added some users (including myself), and successfully created a directory where all users in the "special" group can read and write. The umasks have been changed from the default 0022 to 0002 in /etc/launchd-user.conf. Here's how I tested this:
$ mkdir myTestDir
$ ls -l | grep myTestDir
drwxrwxr-x   2 tdunlap  staff   136 Jul 25 12:13 myTestDir
$ chown :special myTestDir
$ chmod g+s myTestDir
$ ls -l | grep myTestDir
drwxrwxs-x   2 tdunlap  special   136 Jul 25 12:13 myTestDir
$ cd myTestDir
$ mkdir my2ndTestDir
$ touch myTestFile.txt
$ ls -l
drwxrwxr-x  2 tdunlap  special  68 Jul 25 12:17 my2ndTestDir
-rw-rw-r--  1 tdunlap  special   0 Jul 25 12:17 myTestFile.txt
Here we see the group and appropriate permissions are created when performing tasks on the command line. The same has been confirmed when using Finder and TextEdit.app. But I noticed an issue of the group not being preserved when I use Applications like Chrome.app and Archive Utility.app to download and unzip files, respectively. Here's what happens:
drwx------@ 4 tdunlap  staff         136 Jul 25 12:42 802.11
-rw-rw-r--@ 1 tdunlap  staff    16833611 Jul 25 12:42 802.11.zip
drwxrwxr-x  2 tdunlap  special        68 Jul 25 12:17 my2ndTestDir
-rw-rw-r--  1 tdunlap  special         0 Jul 25 12:17 myTestFile.txt
Notice the zip file I downloaded is saved with my Primary Group ID, not the group ID of the folder. And when I use the Archive Utility.app to unzip, the same thing happens. However, examine what happens when I use unzip from the command line instead of the Archive Utility.app:
$ unzip 802.11.zip
Archive:  802.11.zip
  inflating: 802.11-2012.pdf        
   creating: __MACOSX/
  inflating: __MACOSX/._802.11-2012.pdf 
  inflating: 802.11v-2011.pdf       
  inflating: __MACOSX/._802.11v-2011.pdf 
$ ls -l
total 95520
-rw-r--r--@ 1 tdunlap  special  24739306 May 21 13:54 802.11-2012.pdf
-rw-rw-r--@ 1 tdunlap  staff    16833611 Jul 25 12:42 802.11.zip
-rw-r--r--@ 1 tdunlap  special   7329554 May 21 13:47 802.11v-2011.pdf
drwxrwxr-x  4 tdunlap  special       136 Jul 25 12:40 __MACOSX
drwxrwxr-x  2 tdunlap  special        68 Jul 25 12:17 my2ndTestDir
-rw-rw-r--  1 tdunlap  special         0 Jul 25 12:17 myTestFile.txt
Once again it appears that command line tools honor the group ownership, but GUI-based apps do not.
Can anyone suggest how I can ensure attachments downloaded into this directory honor the "special" group instead of saving as "staff"? I prefer not to change the Primary Group ID for each member of the "special" group. I could also run a periodic cron job looking for "staff" group on files and/or directories then performing a chown :special on the offenders. But there must be a better way.
Any suggestions?
Thanks!
Terry

When you remove querystring , then it displays all the data, so no dynamic filter required. But with Filter it reload the filtered  data. That may be the reason for not keeping the states.
You can expand collapse the groups by using javascript code. You can either expand all rows or do some JS trick to store current expanded row state in some hidden control and re-expand them at load through you js code as explained below -
You can find image ID for the collapse-expand image (the '-' image) and can call a SP javascript function (ExpCollGroup()) to collapse/expand and loop it for all row.
$(function(){
ExpCollGroup('id..','img_...');
please check -
http://sharepoint.stackexchange.com/questions/5935/expand-1st-group-and-collapse-2nd-group-in-list-view
http://alectang.com/blog/archive/2010/09/09/easy-expand-or-collapse-sharepoint-list-in-group-by-view.aspx
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

Similar Messages

  • How to preserve the column headings from my playlist when I transfer the list as WAV files to a flash drive?

    I have digitized several old vinyls as WAV files and have them in my MacBook Pro in an iTunes playlist. I have arranged the list under the column headings of "Grouping", "Name", "Time", "Artist", "Album" and "Genre". When I copy the files to a flash drive by drag-and-drop, none of the headings except "Name" show up. How to preserve all of the column headings when copying the file to an external device?  Thanks - RC@gnv.

    I have the same issue when trying to sync from iTunes 11 on my MacBook to my iPhone 4 iOS6.1. I blindly did the iOS upgrade to 6.1 (more fool me) and since then have not been able to use my phone as an iPod.
    I have tried restoreing it, I ve tried restoring it to a new phone but it hasn't worked for me.
    The sync starts and the capacity bar in iTunes shows capacity including and music or films etc that are to be included in the sync and then iTunes stops the sync and nothing has been transfered. As with your experience the music is shown in iTunes under Music, under Devices as greyed out with the syncing icon (dotted circle) to the left of it.
    When I try to include photos in the sync, I also get an error msg stating the connection to the iPhone has been lost. I am trying to do the sync vis USB, so I dont why I get this error.
    I can of course download any music I've bought from Apple from my iCloud to my phone but I want to be able to put any music I want on to it like I could before on iOS5.

  • Imported CD songs are each put into a separate album. How can I group them in one album?

    Imported CD songs are each put into a separate album. How can I group them in one album?

    Look at Steve MacGuire's helpful article:  http://samsoft.org.uk/iTunes/grouping.asp

  • How do I change ownership on iTunes Match from one account to another?

    I purchased iTunes Match using one account but use another as my account for iCloud and my iPhone. How do I change ownership of my Match account?

    I don't think you can.  Purchases made with an account are tied permanently to that account.  This is the reason why it is not a good idea to have more than one iTunes account unlesss you really need to keep them separate.

  • How do I group the responses in a single cell...

    Hello,
    I have created a form in FormCentral.  The form is broken down into several groups of checkboxes.  Each group has a heading such as: 5 years old, 6 years old, 7 years old, etc...
    With the form created using FormsCentral, exported as a PDF (to add calculations) and then imported back into FormsCentral the grouping remain intact in the 'View Responses' area.  Example: The '6 years old' section displays the name of all of the 6 year old selected checkboxes.  The '7 years old' section displays the name of all of the 7 year old selected checkboxes, etc...
    Because the FormsCentral application doesn't provide a great deal of visual customization I am now trying to create my form using InDesign CC.  Now, the items take up their own spreadsheet column and don't group together inside the 'View Responses' area as before.  My question is: how do I group together item in the PDF so that they retain their grouping within FormsCentral as before? 
    My belief is that it has something to do with the naming conventions used on the various checkboxes.  Yet, I cannot quite figure out the pattern. 
    Any help is greatly appreciated.
    Thanks!
    -David

    Hi,
    >>My question is: how do I group together item in the PDF so that they retain their grouping within FormsCentral as before?
    Please try to rearrange your columns in FormsCentral View Responses table. You can select a column (or columns) and move it next to another column, then select the "T" icon which stands for "Text" formatting in Toolbar, here you can change the title of the Column or the text in each responses to a different color/background color.
    Hope this helps,
    Thanks,
    Lucia

  • How to remove group in XML Publisher template

    Hi All,
    How to remove group in XML Publisher template while desining as below is one example in that i want to remove the group no 2,3,4 or G Supp Seq,List G Audit,G Audit and want the output of line no 1 and 5 and then 1 or Batch / Entry/ Category/ List G Supp Seq/C Line No / C Transaction / C Document//C Credit/C Debit/C H Seq Name.
    Example:
    1) Batch / Entry/ Category/ List G Supp Seq                    /C Credit/C Debit/C H Seq Name                    
    2)          G Supp Seq
    3) List G Audit
    4) G Audit     
    5)     C Line No / C Transaction / C Document
    Kindly help how to generate the output without the line no 2,3,4.
    Regards,
    Sushant

    Sushant,
    you can try to design the RTF by Regrouping the XML data based on your requirement then you may get proper order.
    Please see the Regrouping XML concept in the user guide.
    Regards,
    Prasad Raju

  • How does one change ownership of event?

    How does one change ownership of an event?
    We are running OCS 9.0.4.2 on redhat enterprise linux 3.0
    I have a calendar entry which I got from:
    mySess.fetchEventsByRange(Api.CSDK_FLAG_STREAM_NOT_MIME | Api.CSDK_FLAG_FETCH_EXCLUDE_DAILYNOTES |
    Api.CSDK_FLAG_FETCH_EXCLUDE_DAYEVENTS, hand, in_start, in_end, eventProp, result);
    BEGIN:VEVENT
    UID:20050620T151524Z-505dd-1-7af6ed32-Oracle
    ORGANIZER;X-ORACLE-GUID=FEA199DDB9763627E030378E793341C1;CN=old owner:mailto:old.owner@email
    DTSTART:20050801T120000Z
    DTEND:20050801T220000Z
    END:VEVENT
    So now I'm trying to save the event under the new owner using this:
    mySess.storeEvents(Api.CSDK_FLAG_STORE_MODIFY,event,result);
    where event reads as follows:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//ORACLE//NONSGML CSDK 9.0.4.2//EN
    BEGIN:VEVENT
    UID:20050620T151524Z-505dd-1-7af6ed32-Oracle
    ORGANIZER;CN=new owner:mailto:new.owner@email
    DTSTART:20050805T120000Z
    DTEND:20050805T220000Z
    END:VEVENT
    END:VCALENDAR
    And i've run mySess.setIdentity to change to the old owner and new owner with no success?
    Please how does one change the owner of an event?

    The Calendar Sdk doesn't allow you to change the ownership of an event. (ORGANIZER value).
    Regards,
    Jean-Philippe

  • I want to copy video, cutaways and audio combined and use in another project. So far I can only copy the video clip or one of the other elements at a time. How do I group all of them?

    I want to group my  video clip with its audio and cutaway clips so that I can copy the segment and move it to another project. So far I can only move one element at a time. How can I group all the elements?

    You can select multiple objects in the timeline in the usual Mac way - hold down the shift key while you click on the objects then copy, select other project, position playhead where you want to insert then paste.
    Geoff.

  • How do I take ownership of a hard drive build in windows but installed as an additional disk in my new Mac Pro?

    How do I take ownership of a hard drive build in windows but installed as an additional disk in my new Mac Pro?
    I bought a Mac and have various HDDs, some Portable some SATA, I can right to them and dont seem to be able to take ownership of them, is this to do with the format or Security seting I can't find?
    Any help would be great; thanks.
    Stephen

    Thanks Kaz-K, this was what I assumed it to be.  I have started to move the stuf over to a 4GB internal drive, once done and verified, I will reformat the drive and move it back, blooming nusience.
    Cheers.
    Stephen

  • How to set group contacts in nokia asha 305

    how to  set group contacts  in nokia asha 305....thank u......

    Can Some one Tell same group contact creation for ASHA 308 too?

  • HOW CAN I GROUP AND DELETE TEXT MESSAGES IN BULK

    HOW CAN I GROUP AND DELETE TEXT MESSAGES IN BULK

    message - edit - select each text message - delete.
    that is the only method to delete message on your iphone.

  • How to use GROUP BY  in ODI

    how to use GROUP BY in ODI tool

    Hi ,
    you can combine the insert stamt with the select ....so that in the target u will get a single line .....
    SQL> select * from prop_details;
    PROPERTY RELAVANTD NOTICES
    10100 25-JAN-09 30
    10100 03-JAN-09 30
    10100 02-DEC-08 20
    10100 01-DEC-08 10
    10100 31-DEC-08 20
    10101 10-JAN-09 10
    10101 20-JAN-07 15
    10101 30-DEC-08 45
    10101 20-FEB-08 35
    10101 31-JAN-09 25
    10 rows selected.
    SQL> select PROPERTY,max(RELAVANTDATE),SUM(NOTICES) from PROP_DETAILS GROUP BY P
    ROPERTY;
    PROPERTY MAX(RELAV SUM(NOTICES)
    10101 31-JAN-09 130
    10100 25-JAN-09 110
    SQL>

  • How to order / group a report by a placeholder column ?

    How to order / group a report by a placeholder column populated by the group filter ?
    In more detail .....
    My Data model editor's select statement brings back (say 1000 rows) from the database.
    The group filter decides (on performing certain validations) whether to print a row or not in the report.
    Additionally the group filter calculates a "rule type" (just a rule number to say on basis of what rule, the row was selected)
    I would like to order/group the report on the placeholder column which was calculated by the group filter ?
    Obviously, I won't be able to add the "ORDER BY :CP_RULE_NUMBER" in the sql statement as the placeholer column cp_rule_number
    is determined by the group filter level only. (If I do, I get a frequency error)
    Any ideas ?
    Thanks in advance.
    Edited by: user553361 on 8/10/2008 17:35

    how is the group filter implemented?
    If its pure PL/SQL, what about putting the filter-procedure in a stored function into the database? Then you could use the group filter in your query.

  • How to send group emails from ipad

    How to send group emails from ipad

    Thanks.  So matters haven't changed.  Ipad and iohone systems still not make use of the groups created in OSX Contacts, although one can "see" the groups synced through iCloud.  They just do not function as real distribution lists in Mail.
    With the Mailshot app, one creates Mailshot groups with Mailshot group name.  It's as smooth as a work around can get.
    Silly that Apple iOS folks never got around to connecting the contact groups now listed in iOS Contacts through iCloud syncing to also be fully functional in iOS Mail for the purpose of group emailing. 

  • HT3529 how to send group messages in ios 7.0.2

    please tell me how to send group messages in iphone 5 with ios7.0.2

    Oh yeah, now I remember that.
    But I also remember that you had to go all the way to the start of the message to gain access to the current contact information. Where as in iOS7 that button you mentioned is the contact information. Personally I perfer iOS7. I don't delete my messages, so this is better for me.
    However, it wouldn't be a bad idea to add an Edit button in that sub menu that shows up when you touch the upper right button. Currently there are opitions for "Phone", "FaceTime" and "Information" on the contact.
    KOT

Maybe you are looking for

  • How to get next 15 rows in oracle

    Hi All, How can I get the next 15 ,next 15 rows and so on using oracle sql statements. For the first 15 rows I can use rownum and get them SELECT * FROM EMP WHERE STATUS='Y' AND ROWNUM < 15; please let me know . Thanks

  • For custom tables should we use UTC for date/time fields

    A general question. Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format? We're building custom tables and we're making it a standard to store date/time fields in UTC format. Regards, Lavaughn

  • AOL login, and then Apple login

    When I first started using iTunes, I was using an AOL login. I should have known that there would be problems, when I quit AOL, and got an Apple login. I never got an answer on how to get my computer to recognize only an Apple login, and, actually, h

  • IPod - Heat v AC?

    I have a click-wheel iPod, for a little more than a year (so no warranty help). I plug it into my laptop (multiple USB ports) to try to update it. It won't recognize the iPod. I looked around the forums, and a lot of people are having the same proble

  • Gmail issues android HTC Incredible

    I had a friend who tried to log in my phone and did pattern wrong 15 times and now it is asking for my gmail account and password. Which I forgot. How can I reset my phone? I have tried logging on to my gmail account on the computer, but it was not t