Method: Etc.getlogin

Defined in:
etc.c

.getloginObject

Returns the short user name of the currently logged in user. Unfortunately, it is often rather easy to fool getlogin(). Avoid getlogin() for security-related purposes.

e.g.

Etc.getlogin -> 'guest'


44
45
46
# File 'etc.c', line 44

static VALUE
etc_getlogin(obj)
VALUE obj;