vitalnix user management suite 3.2.0


Name

vxdb_sgmapdel - delete a secondary group mapping

Synopsis

#include <vitalnix/libvxdb/libvxdb.h>
#include <vitalnix/libvxdb/xafunc.h>

int vxdb_sgmapdel(struct vxdb_state *handle, const char *user, const char *group);

Link with -lvxdb.

Description

The vxdb_sgmapdel() function will remove the user from the specified secondary group.

Return value

On success, positive non-zero is returned. On error, zero or a negative value is returned, indicating the error.

-ENOENT The mapping does not exist.
-EPERM Not enough privileges to complete this operation.

See also

vxdb_sgmapadd(3), vxdb_sgmapget(3)