NAME
eve, iseve – privileged user

SYNOPSIS
char    eve[NAMELEN] = "bootes";

int     iseve(void)

DESCRIPTION
Eve is a null–terminated string containing the name of the owner of the Plan 9 system (sometimes called the `host owner', see cons(3)). The identity is set on a terminal to the name of the user who logs in. It is set on a CPU server to the authid obtained either from NVRAM or by a console prompt. The initial process created by system initialisation is given the eve identity.

Iseve returns true if the current user is eve. Several drivers use iseve to check the caller's identity before granting permission to perform certain actions. For example, the console driver allows only the user eve to write a new identity into the /dev/user file. The privileges are strictly local and do not extend into the network (in particular, to file servers—even ones running on the local machine).

SOURCE
/sys/src/9/port/auth.c

SEE ALSO
auth(2), cap(3), cons(3), authsrv(6), auth(8)
Copyright © 2024 Plan 9 Foundation. All rights reserved.