vaccess man page on OpenBSD

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

VACCESS(9)		     OpenBSD Kernel Manual		    VACCESS(9)

NAME
     vaccess - check access permissions based on vnode parameters

SYNOPSIS
     #include <sys/param.h>
     #include <sys/vnode.h>

     int
     vaccess(mode_t file_mode, uid_t uid, gid_t gid, mode_t acc_mode, struct
     ucred *cred);

DESCRIPTION
     The vaccess() function checks if the credentials described in cred are
     sufficient to perform the operation described by acc_mode, based on the
     file_mode, uid, and gid arguments.	 These arguments would typically be
     based on the vnode being accessed.

     file_mode is the current mode of the file that is having access checked.
     The uid and gid arguments are the user id and group id representing the
     owner of the file.	 acc_mode describes the operation desired.  It should
     be one of VREAD, VWRITE, or VEXEC representing read, write, and execute,
     respectively.

RETURN VALUES
     vaccess() will return 0 on success, or a non-zero error value on failure.

ERRORS
     [EACCES]	   Permission denied.  An attempt was made to access a file in
		   a way forbidden by its file access permissions.

SEE ALSO
     vnode(9)

HISTORY
     This man page was originally written by Robert Watson for FreeBSD.	 It
     was modified to represent the OpenBSD implementation by Peter Werner.

OpenBSD 4.9		      September 19, 2010		   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

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