Re: find login name of user?
- From: Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 31 Dec 2006 20:12:45 +1300
In message <1167511677.250618.285250@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
rattan@xxxxxxxxxxxxx wrote:
Is there a function/module to find the login name of the user under
UNIX environment?
Note that there isn't really an important concept of "login name" under *NIX
systems. There is the current process UID and GID, effective UID and GID
and so on, but these are just numbers, not names.
The OS doesn't remember anywhere the actual name that you used to login
with; this is conventionally saved in the USER environment variable, but
this is purely for informational purposes.
.
- References:
- find login name of user?
- From: rattan
- find login name of user?
- Prev by Date: Re: Why does Python never add itself to the Windows path?
- Next by Date: Re: a question on python dict
- Previous by thread: Re: find login name of user?
- Next by thread: Progress Box or Bar in Windows
- Index(es):