• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shared file between users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared file between users


  • Subject: Re: Shared file between users
  • From: Matt Jaffa <email@hidden>
  • Date: Sun, 28 Mar 2004 12:20:47 -0700

Make sure the folder itself has the right permissions,
I tried the same thing, but it didn't start working till
I made sure the folder /Users/Shared has read/write for group/owner and everybody else


On Mar 28, 2004, at 12:05 PM, Jorge Arroyo wrote:

Hello,

I'm trying to make a file that can be written by all the users on a
machine. Specifically, I'm creating a file with a hiscore list in the
/Users/Shared folder. I'm using NSArchiver's archiveRootObject: toFile:
to save the object to the file. Then I use the NSFileManager methods to
set permissions so that everybody can read and write to that file.

But when I run my program from another user, it cannot write to the
file. It seems, the program is trying to replace the old file with a
new one and only the owner of the file can do that.

So, anyone have a suggestion on how I could maybe just update the file?

I must be doing something wrong, because I've tested saving a file
with TextEdit, then changing it's permissions so that all the users can
write to it, and then when I open it from another user's account, I'm
able to modify it and save it...

I'm sorry if this has been discussed, I've been all the afternoon
looking on the net and on the archives, but didn't find a solution...

-Jorge Arroyo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Shared file between users
      • From: Jorge Arroyo <email@hidden>
References: 
 >Shared file between users (From: Jorge Arroyo <email@hidden>)

  • Prev by Date: Shared file between users
  • Next by Date: Re: Shared file between users
  • Previous by thread: Shared file between users
  • Next by thread: Re: Shared file between users
  • Index(es):
    • Date
    • Thread