Query: suser
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
suser(9r) suser(9r)NAMEsuser - General: Checks whether the current user is the superuserSYNOPSIS#include <sys/proc.h> #include <sys/acct.h> int suser( struct u_cred *cred, struct flag_field *ac_flag );ARGUMENTSSpecifies a pointer to the credentials for the current process. Specifies a pointer to a flag_field structure that contains accounting flags.DESCRIPTIONThe 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_acflagNOTESYou 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 VALUESIf the current user is the superuser, the suser routine returns the value 0 (zero). Otherwise, it returns an error.ERRORSThe current user is not the superuser.SEE ALSORoutines: privileged(9r) suser(9r)
Related Man Pages |
---|
drv_priv(9f) - centos |
drv_priv(9f) - php |
drv_priv(9f) - debian |
drv_priv(9f) - suse |
drv_priv(9f) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
lsuser -c "ALL" - Output of this command |
NISuser home directory movement in Solaris |
Supersuser |