INITGROUPS(3) BSD Library Functions Manual INITGROUPS(3)NAME
initgroups -- initialize group access list
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
initgroups(const char *name, gid_t basegid);
DESCRIPTION
The initgroups() function uses the getgrouplist(3) function to calculate the group access list for the user specified in name. This group
list is then setup for the current process using setgroups(2). The basegid is automatically included in the groups list. Typically this
value is given as the group number from the password file.
RETURN VALUES
The initgroups() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The initgroups() function may fail and set errno for any of the errors specified for the library function setgroups(2). It may also return:
[ENOMEM] The initgroups() function was unable to allocate temporary storage.
SEE ALSO setgroups(2), getgrouplist(3)HISTORY
The initgroups() function appeared in 4.2BSD.
BSD October 26, 2014 BSD
Check Out this Related Man Page
INITGROUPS(3) BSD Library Functions Manual INITGROUPS(3)NAME
initgroups -- initialize supplementary group IDs
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
initgroups(const char *name, gid_t basegid);
DESCRIPTION
The initgroups() function uses the getgrouplist(3) function to calculate the supplementary group IDs for the user specified in name. This
group list is then set up for the current process using setgroups(2). The basegid is automatically included in the group list. Typically
this value is given as the group number from the password file.
If the groups database lists more than NGROUPS groups for name (including one for basegid), the later groups are ignored.
RETURN VALUES
The initgroups() function returns -1 if it was not invoked by the super-user.
SEE ALSO setgroups(2), getgrouplist(3)HISTORY
The initgroups() function appeared in 4.2BSD.
BUGS
The getgrouplist() function called by initgroups() uses the routines based on getgrent(3). If the invoking program uses any of these rou-
tines, the group structure will be overwritten in the call to initgroups().
BSD August 10, 2002 BSD
I want to build a little website on a Sun Blade 100 running Solaris 10.
I just went out to apache.org and downloaded Unix Source: httpd-2.2.8.tar.gz
After unpacking the tarball, I CD'd into the subdirectory and ran the configure utility. Of course, it crapped out. I see that it is... (17 Replies)
Hello,
We're about to identify our Linux users against AD/Ldap. Our Linux test server is domain Member, winbind ,kerberos and Samba SSO are working fine.
Next step is to read user attributes from active directory and at this point we suck.
We have created a functional user for ldap... (0 Replies)
Hi every body!
I have an debian lenny server with samba and openldap on it.
1. Problem: i can not login ldap user auth.log: nss_ldap: could not connect to any LDAP server as cn=admin,dc=innsbruck,dc=sti,dc=at - Can't contact LDAP server
2. Problem: auth.log: nss_ldap: failed to bind to... (1 Reply)
Please I am having problem to login using Active Directory Services 2008 R2 accounts on a cubox ubuntu (2.6.32.9-dove-5.4.2 #46). "getent passwd" only shows local users, however I can querry ADS users using ldapsearch command.
I have 2 systems, one that does not use gdm can login with all users... (0 Replies)
Please I am having problem to login using Windows 2008 R2 Active Directory Services accounts on a cubox ubuntu (2.6.32.9-dove-5.4.2 #46). "getent passwd" only shows local users, however I can querry ADS users using ldapsearch command.
I have 2 systems, one that does not use gdm can login with all... (1 Reply)
I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Hello and thanks in advance for anyone that can offer me any help with this!
I'm trying to figure out a quick & easy way to see a list of everyone's effective user id... I would have thought 'w' or 'who' would be able to display if someone had switched user accounts... but it's only showing the... (3 Replies)