UNIX ON-LINE Man Pages - Die Onlinehilfe

Die Syntax von Unixbefehlen wird in den entsprechenden Manpages dokumentiert. Hier können Sie diese Onlinehilfe für viele Standardbefehle abrufen.

Suchoptionen:
Seiten auflisten, welche beginnen mit:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   ANDERE   ALLE
INITGROUPS(3)              Linux Programmer's Manual             INITGROUPS(3)

NAME
       initgroups - initialize the supplementary group access list

SYNOPSIS
       #include <sys/types.h>
       #include <grp.h>

       int initgroups(const char *user, gid_t group);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       initgroups(): _BSD_SOURCE

DESCRIPTION
       The  initgroups() function initializes the group access list by reading
       the group database /etc/group and using all groups of which user  is  a
       member.  The additional group group is also added to the list.

       The user argument must be non-NULL.

RETURN VALUE
       The  initgroups()  function  returns  0  on  success.   On error, -1 is
       returned, and errno is set appropriately.

ERRORS
       ENOMEM Insufficient memory to allocate group information structure.

       EPERM  The calling process has insufficient privilege.  See the  under-
              lying system call setgroups(2).

FILES
       /etc/group          group database file

CONFORMING TO
       SVr4, 4.3BSD.

SEE ALSO
       getgroups(2), setgroups(2), credentials(7)

COLOPHON
       This  page  is  part of release 3.25 of the Linux man-pages project.  A
       description of the project, and information about reporting  bugs,  can
       be found at http://www.kernel.org/doc/man-pages/.

GNU                               2007-07-26                     INITGROUPS(3)
 

Scannen Sie den Barcode um die Webseite zu öffnen


Quelle: http://www.trinler.net/de/service/doc/linux/man.html?command=initgroups
Gedruckt am: 16.12.2017 04:22 GMT+0100 (2017-12-16T04:22:17+01:00)