Re: User Privileges
Re: User Privileges
- Subject: Re: User Privileges
- From: "Craig D. Sutherland" <email@hidden>
- Date: Fri, 06 Jan 2012 11:42:04 -0600
If you are willing to use 'do shell script', the command 'ls -l PosixPathToFile' will return a line of characters showing the Posix permissions foe the file. Running 'man ls' in the Terminal will show the options for the ls(list) command as well as how to interpret the results. The -l(long) parameter displays detailed info about the file including permissions for owner, group and everyone. Parsing the result will isolate the info you need. You probably need to interpret the returned data for the user in order to present them with useful info.
User A would need to put the Finder item in a shared folder for which User B has read/write permissions and set the group permissions for that item to read/write.
Craig Sutherland
On Jan 6, 2012, at 9:05 AM, 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".
>
> Does anyone know how to do this?
>
> _______________________________________________
> 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
_______________________________________________
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