Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Getting user name/privilege level and admin name (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: XSLT Question
Next thread: Re: OTHER: iPhone and RB


FW: Special Valentine's Offer for Valentina - Beat the Price Increase!   -   Lynn Fredricks
  Getting user name/privilege level and admin name   -   karl arder
   Re: Getting user name/privilege level and admin name   -   Charles Yeomans
    Re: Getting user name/privilege level and admin name   -   karl arder
     Re: Getting user name/privilege level and admin name   -   Tim Jones

Getting user name/privilege level and admin name
Date: 04.08.07 17:51 (Sat, 4 Aug 2007 11:51:48 -0500)
From: karl arder
How can I look up the current user name, get the user privilege level and also get the admin name in OSX? - thats three separate questions...

Thanks,
karl

Re: Getting user name/privilege level and admin name
Date: 04.08.07 18:02 (Sat, 4 Aug 2007 13:02:10 -0400)
From: Charles Yeomans

On Aug 4, 2007, at 12:51 PM, karl arder wrote:

> How can I look up the current user name, get the user privilege
> level and also get the admin name in OSX? - thats three separate
> questions...

For the current user name, see <http://www.declaresub.com/article/37/
getting-the-name-of-the-current-user>.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Getting user name/privilege level and admin name
Date: 06.08.07 00:06 (Sun, 5 Aug 2007 18:06:02 -0500)
From: karl arder
Thanks Charles,
Actually I had that declare already, you can use $USER in a shell script to get the same info.

karl

Re: Getting user name/privilege level and admin name
Date: 06.08.07 04:24 (Sun, 5 Aug 2007 20:24:35 -0700)
From: Tim Jones
On Aug 5, 2007, at 4:06 PM, karl arder wrote:

> Thanks Charles,
> Actually I had that declare already, you can use $USER in a shell
> script to get the same info.

Careful with $USER as that's not true for all shells. I recommend a
call to "whoami" for the simple user short name, or "id" for the full
gamut of info.

macpro:~ tjones$ id
uidP1(tjones) gidP1(tjones) groupsP1(tjones), 81(appserveradm),
79(appserverusr), 80(admin)

macpro:~ tjones$ whoami
tjones

HTH,

Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>