logname Get the login name for the current user. Like getpass, it checks LOGNAME, USER, LNAME and USERNAME, returning the first to have a value. Usage require('logname').getLoginName()