*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> suser (9r)              



NAME    [Toc]    [Back]

       suser  -  General:  Checks whether the current user is the

SYNOPSIS    [Toc]    [Back]

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

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

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to the  credentials  for  the  current
       process.   Specifies  a  pointer to a flag_field structure
       that contains accounting flags.

DESCRIPTION    [Toc]    [Back]

       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:


NOTES    [Toc]    [Back]

       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    [Toc]    [Back]

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

ERRORS    [Toc]    [Back]

       The current user is not the superuser.

SEE ALSO    [Toc]    [Back]

       Routines: privileged(9r)

[ Back ]
 Similar pages
Name OS Title
su IRIX become superuser or another user
privileged Tru64 General: Checks for proper privileges
setfsuid Linux set user identity used for file system checks
sshd-check-conf Tru64 Checks what the configuration allows or denies based on the incoming user and/or the host name
ttyslot Tru64 Find the slot for the current user in the user accounting database
suser_cred FreeBSD check if process has superuser privilege
suser FreeBSD check if process has superuser privilege
select_enqueue Tru64 General: Adds the current kernel thread
mpsleep Tru64 General: Blocks the current kernel thread
rcmdsh FreeBSD return a stream to a remote command without superuser
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service