• 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: cocoa-dev digest, Vol 2 #1867 - 14 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #1867 - 14 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #1867 - 14 msgs
  • From: Pierre Neihouser <email@hidden>
  • Date: Tue, 28 Jan 2003 11:08:16 +0100

Hello,

It's a pretty old UNIX permission trick. There is no user B on your PB. So the owner of your file does not exist on the PB. Just create a user with the same UID (the user name doesn't matter, the UID is the most important), and then you'll see the user name you gave to this UID appearing in your "Get Info". You will most likely have to play with nidump or niload to set the UID of your user properly. Unless you are lucky and you can get the right UID without.

% nidump passwd .

(don't forget the dot) on the G4 will give you the list of users of the G4 with the UIDs.
The format is:

user name:crypted password:UID:GID:??:??:full name:home:shell

The users UID usually start at 501.
I don't really know about the Objective-C calls, but they most likely call the underlying POSIX system, so it will most likely work.

Keep me in touch,

-- Pierre


On Monday, Jan 27, 2003, at 21:31 Europe/Paris, email@hidden wrote:

Date: Mon, 27 Jan 2003 18:34:22 +0100
Subject: Owner unknown
From: Lorenzo Puleo <email@hidden>
To: <email@hidden>

Hi,
I have two Mac connected throught an ethernet cable.
I log is on the PB as "A".
I log in on the G4 as "B".
I connect from PB to G4 as "B", and I mount the disk.
I copy a file "x" from G4 to G4 from the PB keyboard, in the Finder.
Then, from the PB I ask "Get Info" in the Finder, for the file "x" just
created on the G4, and the OwnerShip panel shows me a *blank* Owner. If I
ask "Get Info" from the G4 I see the right Owner: "B".

And If I get, from the PB, the NSDictionary of the file "x" on G4:

destDict = [manager fileAttributesAtPath:dest traverseLink:NO];
destOwner = [destDict objectForKey:@"NSFileOwnerAccountName"];

destOwner is "Unknown".

Is it a bug in MacOS X?
Did I make something wrong?

Also it seems that I cannot set the attributes, dates and permissions on
that file, either using setDictionary: Cocoa API, and the Carbon API
FSSetCatalogInfo. I will investigate better.

Any idea?
Thank you.
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
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.

  • Prev by Date: Re: How do I create a mutable version of my object?
  • Next by Date: Re: NSView doesnt receive mouseMoved events?
  • Previous by thread: Re: Buggy cvs-wrap
  • Next by thread: PeopleSoft Development Possibility
  • Index(es):
    • Date
    • Thread