Automatically or Permanently Apply to Enclosed Items

Discussion in 'macOS' started by eah2119, Sep 12, 2010.

  1. eah2119 macrumors regular

    Joined:
    Aug 20, 2010
    #1
    I have a folder located in Users>Shared> called iTunes Music for all users of my computer to access for my iTunes music. The permissions are set to read and write for system, wheel, and everyone. It works as it should, but for one exception. When I add or buy something on iTunes the file is put inside this folder, but the permissions are set differently than the folder. Instead the permissions are as follows:
    Evan (Me): read and write
    wheel: read only
    everyone: read only

    The downside to this, is that when a different user logs on and they add the new song(s) to iTunes they can't edit the songs information like artwork and lyrics. I'm not even sure they can rate the song or delete it. I know I can choose "apply to enclosed items" on the sharing and permissions of the iTunes Music folder, but it's kind of a chore.

    My question is: Can I set my computer to automatically apply to enclosed items when I log on or even every time I edit the contents of the folder? THANKS!
     
  2. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #2
    You need to change the umask. Apple covers this on their support page along with the pros and cons.
     
  3. eah2119 thread starter macrumors regular

    Joined:
    Aug 20, 2010
    #3
    I'm new to this "unmask" thing. I read a couple articles on the apple website, but I didn't understand it. Can somebody post a link or explain it to me? Also, I'm not knowledgable with Terminal. I would need someone to dictate to me the exact command.
     
  4. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #4
    The umask determines the default permissions applied to new files and folders. So as the article said, the umask is subtracted from default files and folder permissions.

    What you want is effectively 002, resulting in read & write for the owner and group and just read for everyone else.

    In addition, you would want to use staff, not wheel as no created users are in the wheel group by default. With the way you have it setup, the wheel permissions are useless as the everyone permissions is what is allowing the other users to change files.
     
  5. eah2119 thread starter macrumors regular

    Joined:
    Aug 20, 2010
    #5
    Do I have to use terminal? I chose get info for my iTunes Media Folder and tried to add staff, but that option wasn't listed.
     
  6. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #6
    Yeah, you would have to handle both of these tasks in terminal.
     
  7. eah2119 thread starter macrumors regular

    Joined:
    Aug 20, 2010
    #7
    Ok. So I skipped Terminal and went with this: http://www.macchampion.com/arbysoft/batchmod_163.zip

    I believe it is an alternative solution to what I want to do, but I don't know.....

    I made a backup of my iTunes Music folder on my desktop (it was 20 GB!!) and I used batchmod. I checked all R, W, and X, put root as owner and staff as group. Is this right? I copied a doc from my documents folder to my iTunes Music folder, but the permissions are the same from the source. I want all files and folders I put into the folder to have the same permissions as I have set above when they go in there.
     

Share This Page