Folder permissions for sharing between users on the same machine

Hello,
I have several accounts on my MacBook and I want to keep some files private and some files shared with full permissions for everyone.
OS X standard behavior for the default Users/Shared folder is that everyone has read/write access to the folder, but if you create a new file there, then only the creating user has write access to that file.
I want to change that folder's behavior so that newly created files can be modified by everyone on default.
How would I do that?
Thanks.

Thanks, your answer helped me a lot. I found an even simpler method which doesn't require any extra applications.
Open console and navigate to the directory where your share directory is located, e.g. /Users/Share/
create the desired folder:  mkdir public
set acl permissions for each user with: chmod +a "username1 allow flag1,flag2, ....." public/
check permissions with: ls -le
Example:
chmod +a "dev allow list, add_file, search, delete, add_subdirectory, delete_child, readattr, writeattr, readextattr, writeextattr, readsecurity, writesecurity, chown, file_inherit, directory_inherit" public/
This will give the user dev full access to that folder. Any file or directory created inside that folder by the user dev will also inherit the permissions of that folder.
Also, the advanced permissions override any other permissions. you can test that my making that folder inaccessible with chmod oga-rwx public/ and dev will still be able to access it because of the acl permissions.
exactly how i wanted it.

Similar Messages

  • Sharing applications between users on the same machine

    I am new to the world of MAc OSX, I bought my mac to run a specific application, No problem there, However that application needs to be accessed via multiple users on the same machine. So far I have created the user logons, But each user gets a new iteration of the same application. How can I make one copy of the application together with all its data base files accesible my other users, Also when the user that owns the application logs off...the application is terminated... I have set up fast switching...as a work around so the application will stay up, but Other users cant see it...Help please
    mini mac   Mac OS X (10.4.8)  
    mini mac   Mac OS X (10.4.8)  

    tonyeesi
    Welcome to the Apple Discussions.
    However that application needs to be accessed via multiple users on the same machine.
    If the app is in the HD/Applications folder, all users can access it and use it. Then it doesn't matter of the other users are logged on or off. It's not a different iteration, there is no duplication.
    To share the data: as Kappy says, put it in the Users/Shared folder. Each user can see into another user's Shared Folder.
    Here's a question: if each user has to use the same app plus the same data, why have different accounts? The whole point of different accounts is to keep data separate?
    Regards
    TD

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • Switching USB Scanner Between Users on the Same Machine - Mavericks 10.9.3

    I have a neat scanner connected to my mac via USB.  My wife and I both use the scanner and have separate accounts on the same machine.
    The issue is that the scanner gets "connected" to either one user or the other.  Let's say the scanner is working fine for user A.  User B can't
    use the scanner properly.  It seems like first come first serve.  When user B pushes the scan button on the device and user B is the active account
    on OSX.  User A's account still gets the popup window responding to the scan request.
    I guess I am looking for a terminal command, or some procedure, so that user B can come in and gain access to the scanner without logging out user A.
    Ideally some kind of USB release / reset command etc. etc.

    For posterity, here is one solution to the problem I discovered:  cycle power on the scanner.
    Cycling power seems to release ownership.  Whichever user then uses the scanner next will then latch ownership.  To break ownership another power cycle is required.  Easy enough I guess since the scanner is connected by USB (and therefore close to the computer).  A little surprised that the OS does not manage this automatically.

  • How can photo albums be shared between users on the same computer?

    I have downloaded photos into IPhoto, but my wife can't view them on the computer from her homepage.  (We have separate  passwords upon startup.)  Thanks.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How do you setup file sharing between users on the same computer?  How do they view the shared files?

    I have 10.6.8 software loaded on my Mac Pro.  My family uses it as our primary computer, it is basically my wife and I .  I set up a third account for my 2 1/2 year old daughter since there is a crap load of software programs for her games and what nots.  I want to be able to share all the files between all three accounts on the computer.  I do see under System Preferences how to do file sharing, however when I do I can not find where to view the files I have shared.  I have tried sharing the entire hard drive and desktop along with specific folders.  Thanks

    Tempeleton Peck
    I understand how to do that, I was looking to share all fodlers or a bunch of folders.  I found out how to do it.
    Paul

  • Sharing one Aperture Library between multiple users on the same machine

    Is there a way of setting up Aperture so that two different users on the same machine have full rights to do everything?

    Ian,
    Thanks for the suggestion. It certanly better than nothing, but in my case there is no partition with permissions off and there are other users to whom I wouldn't want to give full rights to the library. As an alternative I thought of simply creating a special user and do all editing from it.
    At any rate, it would have been useful if Aperture had something like that built in - like a preferences option, where one could specify a MacOS group name, and Aperture would do all its file/folder create operations within a given library with setgid()/setegid() of that group and corresponding umask() to give rw permissions to that group. Not too hard to do, either.

  • Move an iTunes library between users on the same mac

    How do I move an iTunes library between users on the same mac?
    I accidentally created a secondary user on my mac some time ago when using the migration tool and am now going back and transferring all my files from the secondary to the admin user profile.
    I wanted to know which itunes files/folders need to be copied over.
    Is the process as simple as replacing the itunes folder on admin with the copied itunes folder from my secondary profile or do I need to delete the admin folder first and then copy the old folder over or do I delete the contents of the folder and replace with the copied contents?
    I am using shared folders to move between users, but want to make sure that I am picking the right files to transfer.
    Thanks in advance.

    Assuming you have left iTunes to default settings so everything is still in the iTunes folder the way iTunes likes it to be, copy the whole of the iTunes folder to the new location.  If it is in the default directory (Home > Music) for iTunes the application will automatically use it there for the new account.  If you put it elsewhere you will have to start iTunes and immediately hold down the option key to direct it to the new location.
    It is just possible you will have to change permissions.  If you encounter those issues read the part about changing permissions on the iTunes folder in: https://discussions.apple.com/message/11583914
    This is all a slight variant on:  iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527

  • How do I share microsoft software on a mac between users of the same mac?

    How do I share microsoft software on a mac between users of the same mac?
    New Mac
    Set up Microsoft tools on the mac but can't figure out how to share them between different logins we have setup on our computer

    Hello FritzMills3,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    FaceTime for Mac 1.x: Manage your FaceTime settings
    http://support.apple.com/kb/PH5652
    Open FaceTime preferences
    Choose FaceTime > Preferences.
    The Account field identifies the Apple ID you used to sign in to FaceTime.
    You can turn off and sign out of apple id.
    Have a nice day,
    Mario

  • Sharing iMove Projects Libraries with different users on the same machine

    I was wonder how two different users on the same machine can
    share project libraries. Some Context:
    My daughter has some finished projects in her project library and
    I either want to import those project into my library or share them
    so both user accounts can access the projects (similar to how the
    event library is accessible)
    Note: I've already moving the project library to a shared disk (the one
    the event library is on) with no luck
    Using iMove 09
    tia...

    You need to move each project to the external drive from within iMovie. Be sure to use command-drag so you move, not copy.

  • Share calendar between users on the SAME mac

    How can I share a single calendar (and address book) between users on the SAME mac? Thanks.

    I've got the same question...
    Anyone?
    Anyone?
    ...bump...

  • Can i share music and photos between two users on the same machine?

    How can I share my music and photos between two users on the same machine?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • How do I share photos on I-photo between users on the same computer?

    how do I share photos on I-photo between users on the same computer?

    See Terence Devlin's post here >  https://discussions.apple.com/thread/3250415?start=0&tstart=0

  • Can you share to other users on the same machine?

    If I have 2 users on the same machine, and I log in with one user, open iTunes, then swich user and bring up iTunes. Will the second user see the shared shongs from the first user?
    Thanks,
    Alfredo

    Here is what I did:
    1. Create new user account.
    2. Open iTunes
    3. Set preferences to NOT copy files over on an import.
    4. Set the location for my music library to the "Public" folder (created an iTunes folder in there and pointed to it).
    5. Selected "Add to Library" and selected the top level folder where my songs are (an mp3 folder on my firewire drive)
    6. Since my son had some songs of his own that he exported from Garageband, I went back the the preferences and checked the "copy files on import", then selected "Add to Library" on those files. NOTE: if you do this, you may want to exclude that directory in step 5 above.
    The reason I used Public/iTunes as the output folder, was so other account could import those files to their iTunes in the future.
    Alfredo

  • How can I share my ical with other users on the same machine?

    Having recently bought an imac I set up accounts for the family. I'd like to share a generic calendar with everyone that only the adults can read/write, but want to allow everyone to hold their personal calendars at the same time. All the accounts are on the same machine. Can this be done? If so how?

    You can only do this by syncing your calendar to an external server - MobileMe is designed for this but if you don't already have a MobileMe account you can't start one now.
    If you do have a MobileMe account the method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/sharedcalendar.html#publicshare
    If you don't, you could sync to Google Calendar (Google accounts are free) or wait for iCloud which should be out in a couple of months and will probably provide this sort of facility.
    You might like to consider BusyCal which is like iCal Pro - similar to iCal but with extra facilities. It can sync calendars on a Lan and also between accounts on the same machine (you have to have fast user switching enabled).
    There is a free trial available on their website: it's slightly cheaper from the Mac App Store. (I have no connection with this company).

Maybe you are looking for