From: Benjamin Peterson Date: Sun, 31 Aug 2014 01:04:15 +0000 (-0400) Subject: getuid() returns real process id not effective (closes #22307) X-Git-Tag: v3.4.2rc1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e218bcbf3936b5fb8124d22ecc7c0d2e92a8886b;p=python getuid() returns real process id not effective (closes #22307) --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index bb751f4888..0a59108b2c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -281,10 +281,10 @@ process and user. .. function:: getlogin() Return the name of the user logged in on the controlling terminal of the - process. For most purposes, it is more useful to use the environment variables - :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, or - ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently - effective user id. + process. For most purposes, it is more useful to use the environment + variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user + is, or ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current + real user id. Availability: Unix, Windows.