.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith .\" Modified 2004-10-10 by aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH initgroups 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE initgroups \- inicializa la lista suplementaria de acceso de grupos .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP \fB#include \fP .PP \fBint initgroups(const char *\fP\fIuser\fP\fB, gid_t \fP\fIgroup\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBinitgroups\fP(): .nf A partir de glibc 2.19: _DEFAULT_SOURCE glibc 2.19 y anteriores: _BSD_SOURCE .fi .SH DESCRIPCIÓN La función \fBinitgroups\fP() inicializa la lista de acceso de grupos leyendo la base de datos de grupos \fI/etc/group\fP y usando todos los grupos de los que \fIuser\fP es miembro. Se añade a la lista el grupo adicional \fIgroup\fP. .PP The \fIuser\fP argument must be non\-NULL. .SH "VALOR DEVUELTO" The \fBinitgroups\fP() function returns 0 on success. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH ERRORES .TP \fBENOMEM\fP Memoria insuficiente para asignar la estructura de información de grupo. .TP \fBEPERM\fP The calling process has insufficient privilege. See the underlying system call \fBsetgroups\fP(2). .SH ARCHIVOS .TP \fI/etc/group\fP base de datos de grupos .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBinitgroups\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES None. .SH HISTORIAL SVr4, 4.3BSD. .SH "VÉASE TAMBIÉN" \fBgetgroups\fP(2), \fBsetgroups\fP(2), \fBcredentials\fP(7) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Vicente Pastor Gómez . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .