Re: User Privileges
Re: User Privileges
- Subject: Re: User Privileges
- From: Doug McNutt <email@hidden>
- Date: Fri, 06 Jan 2012 12:03:28 -0700
At 09:05 -0600 1/6/12, Luther Fuller wrote:
>Suppose you have a Finder item (file, folder) that was created by user "A".
>User "A" is now the owner of the item.
>Suppose, further, that user "A" adds user "B" to the item and sets privileges for that user.
>
>Here's the problem ...
>User "B" is logged in and, via an AppleScript, wants to get the privileges assigned to him by user "A".
>As far as I can determine, this is impossible.
>
>The script can ask for the 'owner' of the item --> "A",
>and can ask for the owners privileges,
>but I can find no command in AppleScript which can
>1. ask if "B" is an assigned user of the item; and
>2. ask for the privileges of user "B".
>
Aaron has brought up Access Control Lists and Craig has brought up groups.
--> The real question is just how did user A "add user B to the item"? <--
In simple UNIX there is no such thing. The best one can do is to create a group, make user A and user B members of that group, and change the group assigned to the new file or directory to match the new group. In most cases that would be the way to go because it's very likely that we're talking about a project that will have a bunch of files and directories all of which need the same permissions.
A harder way is to invoke Access Control lists which may and may not be handled the same way everywhere. Finder in my older version of OS neXt, 10.3.9, doesn't have any such capability. I donno about newer versions but I can imagine Finder with some strange way to combine groups and ACLs while keeping the results safely hidden from the user.
--
1801 - Joseph Marie Jacquard uses punch cards to instruct a loom to weave "hello, world" into a tapestry.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden