DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

dbDeleteUserPriv(3dba)


dbDeleteUserPriv -- delete user privileges assigned by dbAddUserPriv

Synopsis

cc [flag ...] file ... -kthread -leels [library] ...
#include <eelsdba.h>

int dbDeleteUserPriv( char *host, char *user );

Description

dbDeleteUserPriv deletes user privileges added by dbAddUserPriv(3dba).

The word ``any'' can be used as a wildcard for the host or user field. For example, if ``any'' is specified for the user field, then all privileges are deleted for every user. This is not advisable because if you delete all database privileges then no one (not even root) will be able to add privileges.

Arguments


host
(Input) IP/Hostname from which the user is connecting to the database

user
(Input) The name of the user that is having its privileges removed.

Return values

dbDeleteUserPriv returns 0 if successful. Otherwise, it returns -1.

References

dbAddUserPriv(3dba), Intro(3dba)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004