Re: User Permissions
Re: User Permissions
- Subject: Re: User Permissions
- From: "John W. Baxter" <email@hidden>
- Date: Wed, 14 Jul 2004 10:58:42 -0700
You can also get the information (spelled out) using the groups command:
$groups
staff wheel admin
$groups jwb
staff
$
The current user does have admin; the user jwb does not.
Or, scripting (and getting both those users at once):
do shell script "groups;groups jwb"
--> "staff wheel admin
staff"
--John
On 7/14/2004 7:21, "Graff" <email@hidden> wrote:
>
80 is the usual group number for the admin group
>
>
To see it in a more human-readable format type this in the terminal and
>
hit return:
>
id
>
>
You'll see something like:
>
uid=501(username) gid=20(staff) groups=20(staff), 0(wheel),
>
80(admin)
>
>
501 is usually the first user account on your system, 20 is usually
>
staff group, 0 is usually wheel group, 80 is usually admin. This is
>
all Mac OS X-specific of course, other systems may have similar
>
defaults or they may be a bit different.
>
>
- Ken
>
>
On Jul 14, 2004, at 9:20 AM, Ronald Hofmann wrote:
>
>
> works great, what does "80" stand for?
>
>
>
> Am 14.07.2004 um 14:35 schrieb Axel Luttgens:
>
>
>
>> Ronald Hofmann wrote:
>
>>
>
>>> Hi everybody,
>
>>> is there a way to find out if the current user has administrator
>
>>> permissions?
>
>>
>
>> Perhaps something like this:
>
>>
>
>> "80" is in words of (do shell script "id -G")
>
>>
>
>> could be of some help.
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.