|
|
HP-UX Reference > Ssetauduser(3)HP-UX 11i Version 2: December 2007 Update |
|
NAMEsetauduser() — start auditing the current process as owned by a given user DESCRIPTIONsetauduser() sets audit tag which uniquely identifies the user for the current process. The user argument points to the name of the login user associated with the current process, and must not exceed the longest user name that HP-UX supports. sysconf(_SC_LOGIN_NAME_MAX) can be used to dynamically get the longest user name that HP-UX supports. The stime argument points to time of authentication in the format YYYYMMDDhhmm, Coordinated Universal Time (UTC). If stime is a null pointer, the UTC of the current time is used. Programs using this routine must be compiled with -lsec. Security RestrictionsThis call requires the user to be superuser or to possess the SELFAUDIT privilege. See privileges(5) for details. RETURN VALUEsetauduser() returns the following values:
ERRORSIf setauduser fails, errno is set to one of the following values:
|
|