RE: User Access
RE: User Access
- Subject: RE: User Access
- From: "Mondragon, Ian" <email@hidden>
- Date: Fri, 07 Mar 2003 15:38:37 -0600
you can use NSUserName() to get the current user name, and then use the
regular c routines to get the groups...
- ian
>
-----Original Message-----
>
From: email@hidden [SMTP:email@hidden]
>
Sent: Friday, March 07, 2003 2:15 PM
>
To: email@hidden
>
Subject: User Access
>
>
Hi,
>
>
I am trying to write a user-security module. Basically I am thinking that
>
it
>
would be easy for me to get the current user's name - the code must be out
>
there
>
somewhere.
>
>
What I want to be able to do is check whether the current user has "root"
>
or
>
"administer" access on the computer. Anyone know how to do this - or can
>
direct
>
me to the right sources...
>
>
Thanks for the help
>
>
Zameer
>
>
__________________________________________________________
>
Get your FREE personalized e-mail at http://www.canada.com
>
_______________________________________________
>
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.