getauduser man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

getauduser(3)							 getauduser(3)

       getauduser - retrieve the accountable user for the current process


       retrieves  the  accountable  user for the current process and saves the
       information into the buffer pointed to by user.	It also retrieves  the
       time  of	 authentication	 and  saves  it	 into the buffer pointed to by
       stime, if the information is available.	 Caller	 must  set  usize  and
       tsize to the size of the user and the stime buffers.  Note that the two
       buffers are always null terminated, even if it results in loss of  some

       Programs using this routine must be compiled with

   Security Restrictions
       This  call  requires  the  user be superuser or possess privilege.  See
       privileges(5) for details.

       returns the following values:

	       n     Successful completion.  n is the length of the  retrieved
		     login  name,  excluding the null byte.  If n is less than
		     usize, the login name is  retrieved  without  truncation.
		     Otherwise,	 usize	-1 bytes of login name are copied into
		     user, and user is null terminated.	 The caller  needs  to
		     retry with a larger buffer.

		     is set to indicate the error.

       If fails, is set to one of the following values:

	      The caller is not a superuser or a privileged process.

	      The size of    stime buffer is smaller than See


       was developed by HP.

       The  return  values and null padding semantics for this system call are
       chosen such that a chance for buffer overflows in a C program is	 mini‐
       mized.	These  semantics  were	inspired  by  of  C99  and and as they
       appeared in OpenBSD.

       getaudid(2), setaudid(2), setauduser(3), audit(5), privileges(5).


List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net