Manual Reference Pages - SETLOGINCLASS (2)
- get/set login class
getloginclass char *name size_t len
setloginclass const char *name
routine returns the login class name associated with the calling process,
as previously set by
The caller must provide the buffer
bytes to hold the result.
The buffer should be at least
bytes in length.
system call sets the login class of the calling process to
This system call is restricted to the super-user, and is normally used
only when a new session is being created on behalf of the named user
(for example, at login time, or when a remote shell is invoked).
Processes inherit login class from their parents.
The following errors may be returned by these calls:
argument gave an invalid address.
argument pointed to a string that was too long.
Login class names are limited to
.In sys/param.h )
characters, currently 17 including null.
The caller tried to set the login class and was not the super-user.
The size of the buffer is smaller than the result to be returned.
system calls first appeared in
.Fx 9.0 .
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.