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.

Similar Messages

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

    I have created different users on my new Macbookpro, but I can't seem to share files between two users. Help how do I share files between users on one laptop? eg. a pdf file that I want to grab from my user x and use it on user y, thanks.  By the way I have already tries going into system preferences, sharing folder, then turning on file sharing and that didnt work. thanks

    From the Help Menu using the search criteria Drop Box

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

    My wife has a MacBook, and I just bought my first iMac.  When I booted it for the first time, it asked me if I wanted to copy preferences from her computer.  I thought that was a great idea.  It took 8 hours to copy everything (this I totally did not expect, but couldn't interrupt), but when it was done, I had all of my fiiles and applications and everything, so that's cool.  Now the problem is the separate user accounts.  I had always used her account on her computer while mine sat idle, for the most part.  Now I want to use my account on my computer but cannot find *any* of my files, unless I switch users and view them on *her* account.  Even when I "search my entire computer" for a file, the Mac acts like the files don't exist.  I turned on file sharing in the sys pref, but that didn't seem to help.  Any ideas?

    Mac OS X by design keeps documents and settings owned by one user private from and inaccessible to any other user on the system. This is normal and has always been the case with Mac OS X.
    If you want documents accessible from both accounts, the easiest way to accomplish it is to put those documents in the Users/Shared folder. If you want to move your documents from your wife's account to yours, log into her account, move the documents to the Shared folder, then log into your own account and move the documents from the Shared folder to your own Documents folder.
    Regards.

  • HT4007 how can i share photos between users on the same mac?

    Dear All,
    My wife and I use the same MacbookPro, but our own different login Accounts on the Mac, how can we share photos bewtwen these 2 accounts.
    Say, I've downloaded some pics from my camera and would like to transfer to her login account.
    Can I do it on the desktop level or can I use iPhoto to do this? I'd like to know how to do bothways, without having to duplicate the files(ie saving 2 copies of the same file on the computer)
    Isn' there a 'New' feature on iPhoto / Aperture saying that it uses the same 'Unified' library or something ?
    Can this feature help? but how to activate?
    Pls help.
    Thanks

    Macs have a folder called "Public" for this purpose.  See this from Finder's help:
    Share files with others using a drop box
    To give a copy of a file to another user, you can copy the file to the person’s Drop Box.
    HidePut a file in the Drop Box of another user on your Mac
    Open the user’s Public folder (in their home folder in the Users folder on your hard disk).
    Hold down the Option key and drag the file to the Drop Box in the user’s Public folder.
    Click the desktop to make sure you’re in the Finder, and then choose Go > Computer.
    Double-click the icon for your computer’s internal disk (usually named Macintosh HD) to open its folder.
    Open the Users folder, and then open the folder for the person to whom you’re giving a file.
    Open the user’s Public folder, and then drag the file to the Drop Box. To keep a copy of the file for your own use, hold down the Option key while you drag.
    Even though you can put items in another user’s Drop Box, you can’t open any Drop Box except your own.

  • How do I Share ical between users on the same computer

    I share my computer with my wife and we each have our seperate logings. We'd like to be able to share our diary on the computer so we can keep track of each other. Is this possible?
    I use Tiger and ical 2.0.3
    Peter

    Mac OS X by design keeps documents and settings owned by one user private from and inaccessible to any other user on the system. This is normal and has always been the case with Mac OS X.
    If you want documents accessible from both accounts, the easiest way to accomplish it is to put those documents in the Users/Shared folder. If you want to move your documents from your wife's account to yours, log into her account, move the documents to the Shared folder, then log into your own account and move the documents from the Shared folder to your own Documents folder.
    Regards.

  • How do I share files between user accounts on same MBP

    My wife and I both share a MBP and have different logins. We want to be able to access (not just read but also edit) document files in each others Home. From reading the Apple information on sharing files, we can do that by placing them in a Public or Shared folder.  But that only gives a the ability to read, not write the files.  Am I interpreting that correctly?  Or is there a way to do this?

    You can transfer the file to your computer, change it, then put it back in the Shared Folder.

  • 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...

  • 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

  • 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 do i share files between users

    I would like to know how to share documents (files) between users on my iMac.   Any suggestions would be welcome.

    Choose Go to Folder from the Finder’s Go menu, provide /Users/Shared/ as the path, and drag them there.
    (117100)

  • 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.

  • HT3819 how can i share itunes with users on the same computer?

    My husband and I both have separate user profiles on our Mac.  Is there a way we can access all the music files from our itunes between the two profiles?

    I puzzled this out a while back. Lets see if i can at least point you in the right direction.
    From the Admin account open System Prefrences>Sharing
    on the left there is a check box for "file Sharing" check this box.
    to the right you can add folders, add "iTunes Media"
    then you can add Users. add the users that can share that folder.
    then open the other account that wants to share that folder.
    open their iTunes>Prefrences>Advanced. Uncheck the box that says "Copy files to iTunes Media folder when adding to library"
    then open Finder and the shared iTunes Media folder should be on the left... (fingers crossed)
    the only problem is that any time you add media to the admin account, you have to go into the other account and add it to that itunes.
    hassle, but it's what i do.
    Good Luck

  • 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.

  • How to find duplicated files across users on the same mac

    I have an iMac under 10,8,3 with different users. How can I find out the duplicated files ie same file under different users account ?
    Thanks

    You can't. Other user's files shouldn't be discoverable by an user. If they were, then the security model would be broken.

  • How do I share files across accounts on the same iMac?

    I used Migration Assistant to bring documents from a Windows laptop over to my new iMac.  I setup several accounts already on the iMac.  I want to be able to view the migrated documents across all of the accounts on my iMac.  How do I do that?

    In FINDER, copy the migrated documents you want to share into the Dropbox, in the second column over.
    Hope this helps

Maybe you are looking for

  • Problem in Xpath expression(ccBPM).

    I have given the following expression in the container operation and assigned the xpath /MT_RS2/FIL/substring(FILE_NAME,15,17) to the simple variable that I declared in container data.I used this variable to check the condition in switch.The problem

  • Filtering Key Figures/Columns in a Cross Tab Component

    Hello All, I am creating a P&L Statement for Better/Worse comparisions, and I have to show only three columns at a time based on User Drop Down Selections. Here is my Bex Query Out put looks like.  The Rows part is "Structure" and Columns are "Cell R

  • Mac - DW 'forgetting' site definitions

    DW (CS3) has occasionally 'forgotten' the sites in my Manage Sites dialog. It will complain that I must re-designate the site root folder(s). Are there similar experiences? Is this a prefs problem? If so, which prefs do I trash (and what else do I lo

  • Why is Photoshop crashing when I try to open any file bigger than 5mb?

    I've been pulling my hair out trying to figure out why Photoshop crashes after I attempt to open any .psd file bigger than 5 mb. I've tried getting rid of any unvalidated fonts, deleting setting files, etc. But the larger the file, Photoshop simply c

  • Bursting Delivery

    Hi, I am trying to burst a report based on the data source from a report in OBIEE. The data source contains invoice data and I am trying to generate and email a batch of invoices to customers. I have selected the data source and set up an invoice tem