suser man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

suser(9r)							     suser(9r)

NAME
       suser - General: Checks whether the current user is the superuser

SYNOPSIS
       #include <sys/proc.h> #include <sys/acct.h>

       int suser(
	       struct u_cred *cred,
	       struct flag_field *ac_flag );

ARGUMENTS
       Specifies a pointer to the credentials for the current process.	Speciā€
       fies a pointer to  a  flag_field	 structure  that  contains  accounting
       flags.

DESCRIPTION
       The  suser routine checks whether the current user is the superuser. If
       the test succeeds and ac_flag is not a null pointer, the	 ASU  flag  is
       set  in the flag_field structure pointed to by ac_flag. The most common
       value for ac_flag is as follows:

       &u.u_acflag

NOTES
       You use the suser routine only if the security feature is not  enabled.
       If  the	security  feature  is  enabled,	 use the privileged routine to
       determine if the current process has the appropriate privilege.

RETURN VALUES
       If the current user is the superuser, the  suser	 routine  returns  the
       value 0 (zero). Otherwise, it returns an error.

ERRORS
       The current user is not the superuser.

SEE ALSO
       Routines: privileged(9r)

								     suser(9r)
[top]

List of man pages available for DigitalUNIX

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]
Tweet
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