Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #647
Difficulty: Medium
Window Maker is a free and open-source window manager for the X Window System designed to emulate NeXTSTEP's GUI.
True or False?
Linux & Unix Commands - Search Man Pages

initgroups(3) [bsd man page]

INITGROUPS(3)						     Library Functions Manual						     INITGROUPS(3)

NAME
initgroups - initialize group access list SYNOPSIS
initgroups(name, basegid) char *name; int basegid; DESCRIPTION
Initgroups reads through the group file and sets up, using the setgroups(2) call, the group access list for the user specified in name. The basegid is automatically included in the groups list. Typically this value is given as the group number from the password file. FILES
/etc/group SEE ALSO
setgroups(2) DIAGNOSTICS
Initgroups returns -1 if it was not invoked by the super-user. BUGS
Initgroups uses the routines based on getgrent(3). If the invoking program uses any of these routines, the group structure will be over- written in the call to initgroups. 4.2 Berkeley Distribution May 12, 1986 INITGROUPS(3)

Check Out this Related Man Page

initgroups(3C)															    initgroups(3C)

NAME
initgroups() - initialize group access list SYNOPSIS
DESCRIPTION
reads the login group file, and sets up the group access list for the user specified by name, using the system call (see setgroups(2)). If the value of basegid is zero or positive, it is automatically included in the groups list. Typically this value is given as the group num- ber from the password file. If the login group file is empty, basegid is the only member of the list. If the number of groups, including the basegid entry, exceeds {NGROUPS_MAX}, then subsequent group entries are ignored (see limits(5)). RETURN VALUE
Upon successful completion, returns 0; otherwise it returns -1 and sets to indicate the error. ERRORS
fails if any of the following conditions are encountered: The calling process does not have the appropriate privilege. Insufficient memory available to hold gidset. An entry in gidset is not a valid group ID. WARNINGS
uses the routines based on getgrent(3C). If the invoking program uses any of these routines, the group structure is overwritten by the call to Subsequent calls to with the same name parameter override the actions of previous calls. On many systems, no one seems to keep up to date. uses the Dynamic Name Service Switch. (See nsswitch.conf(4).) An application that uses this interface cannot be fully archive bound. NETWORKING FEATURES
NFS If is linked to tries to use the Network Information Service (NIS) for entries beginning with a plus sign If group membership for name is managed by NIS, and no NIS server is able to respond, a call to does not return until a server does respond. This lack of action causes commands such as and to wait indefinitely. See group(4) for proper syntax and operation. AUTHOR
was developed by the University of California, Berkeley. FILES
login group file SEE ALSO
login(1), su(1), getgroups(2), setgroups(2), group(4), thread_safety(5). initgroups(3C)

8 More Discussions You Might Find Interesting

1. Solaris

Apache config issue

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)
Discussion started by: BrewDudeBob
17 Replies

2. Windows & DOS: Issues & Discussions

Using ADS Ldap from Linux

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)
Discussion started by: demwz
0 Replies

3. Debian

nss_ldap failed to bind to LDAP server

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)
Discussion started by: magge
1 Replies

4. Shell Programming and Scripting

LDAP and PAM Configurations for Windows 2008 R2 ADS and Cubox Ubuntu client

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)
Discussion started by: powelltallen
0 Replies

5. Cybersecurity

LDAP and PAM Configurations for Windows 2008 R2 ADS and Cubox Ubuntu client

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)
Discussion started by: powelltallen
1 Replies

6. HP-UX

Hpux and samba4 ad

I'm tryng to setup hpux samba,i use this smb.conf workgroup = DOMINIO realm = DOMINIO.COM server string = "" netbios name = HPUX2 security = ads hosts allow = 192.168.0.0/24 127.0.0.1 debug level = 10 ... (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

7. Programming

I can't compile (gcc) in Solaris 11.3 non global zone

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)
Discussion started by: sugar222
4 Replies

8. UNIX for Beginners Questions & Answers

How to identify users that have su'ed to a different account?

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)
Discussion started by: bodisha
3 Replies

Featured Tech Videos