realbasic-nug
[Top] [All Lists]

Re: Getting full user name

To: "REALbasic Network Users Group" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Getting full user name
From: Tim Jones <tjmac at tolisgroup dot com>
Date: Fri, 27 Feb 2004 12:47:00 -0700
References: <BC65550D dot 10DB4%RBNUG at fischerappelt dot de> <a06020407bc654820d57c at [10 dot 10 dot 10 dot 116]>
An interesting (if useless) note is that under 10.3, the password hash in id -P is converted to asterisks.

[tjones at g4mac ~]$ id -P
tjones:********:501:501::0:0:Tim Jones:/Users/tjones:/bin/bash

Also, as Maury stated, the Carbon declare method is also available and doesn't require a shell (and provides lots of other goodies).

Tim

On Feb 27, 2004, at 12:17 PM, Aaron Ballman wrote:

Huh?!? It is the other way round here (OS X 10.3.2), whoami only gives me
the short name, while id -P has full service:

---------------------------------------------------------------
[AlBook-KL:~] kl% whoami
kl
[AlBook-KL:~] kl% id -P
kl:Csq9hr8Kkmthg:501:20::0:0:Knut Lorenzen:/Users/kl/:/bin/tcsh

Ack! I spoke too soon. Sorry about that. I forgot that a little while back I changed my long name to be the same as my short name. :-P You're absolutely right. id -P is the way to go, not whoami.

~Aaron
--
To me, hockey is like boxing, except there's no bell, no ropes, and the boxers carry sticks.

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>