Re: user id unknown
Re: user id unknown
- Subject: Re: user id unknown
- From: publiclook <email@hidden>
- Date: Tue, 4 Mar 2003 18:23:36 -0500
I am curious why anyone would copy a user's files to a machine where
the user does not have an account or at least a user id ? Is the
problem simply that the same user has different ids on different
computers? If so, that is a failure of the person who created the
accounts. Networks of multi-user computers have existed for a long
time now, and creating network users is not rocket science.
Netinfo/UserManager used to allow you to add network users simply...
If the user really doesn't have access to /is not known by a machine
then he probably doesn't want his files moved there!
You can always use find somepath -exec shown someuser {} \; to change
the ownership of all files under a path. That way an adminisrator can
partially recover from being a clueless ????? who gave the same person
different user ids on different computers ;)
As soon as there are two multi-user computer systems networked
together, certain very basic administrative tasks become important.
This issue of user ids applies even with network mounts and DropBox
folders etc. It is a huge security flaw to have two different users
with the same id! One can trash the other's files. That is much worse
than the same user with two different ids, but if you screwed up one
way you have probably screwed up the other way too.
On Tuesday, March 4, 2003, at 05:05 PM, Lorenzo Puleo wrote:
Hi Dave,
glad to know someone else had the same question.
I use the routine Apple grants on its web site called
FSCopyObject. I have to say, it has *a lot of bugs*. Warning.
Anyway, it creates the file using
FSCreateFileUnicode
then it copys the forks, then it sets the CatalogInfo with
FSSetCatalogInfo
So, there are no hidden procedures.
I think it copys the user id to the destination file, so since that
user id
doen't exist on the destination machine, the Finder Get Info panel
reports a
blank Owner, and the file could not be opened anymore. It seems to be
busy.
You have to change the owner by hand, in order to use it.
Anyway, I am totally disappointed about the assistance Apple is
granting to
the developers. I can understand MacOS X is still young (I love
Apple), and
thus it has some bug, but I would like anyway to find a workaround to,
think
about, a simple copy file procedure... Amazing!
Please let me know.
--
Lorenzo Puleo
mailto:email@hidden
From: David Feldman <email@hidden>
Date: Tue, 4 Mar 2003 16:36:30 -0500
To: Lorenzo Puleo <email@hidden>
Cc: <email@hidden>
Subject: Re: user id unknown
I know I'm merging two conversation topics here (and I suppose you and
I are sort of competitors), but what routine do you use for
programmatically copying files, and how does it work for you?
--Dave
_______________________________________________
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.