This is the mail archive of the
mailing list for the glibc project.
Maximum line length for a group
- From: Daniel Qarras <dqarras at yahoo dot com>
- To: libc-help at sourceware dot org
- Date: Sun, 31 Aug 2008 07:22:50 -0700 (PDT)
- Subject: Maximum line length for a group
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=GrUK9HQ1JXXOehDoZpaxNELpj12p1BYW4aqH47KHWIfBDJB+fFfHNq4o14Xr1wOe2f4OpjdNnSDKEoCoTX+IAv8WssTszuf+3VIuR3PlssibR8l9D5KTOUUcNWeUx3tEX+dQJVM+q4vu1XKcWvVSl5R6+5BQp4NPV/+1H2svVUM=;
- Reply-to: dqarras at yahoo dot com
not sure where I should be asking this so I thought to try this list.
On a system I'm working with users have been added to a popular group and now it seems that the line length for the group will exceed 2048 soon - could this be a problem? The reason I'm worried is that I see this:
localhost:~> getconf LINE_MAX
on both RHEL4/Fedora 9 and there's few old bugs about this in RH bugzilla, some referring to a kernel limitation, although 'info libc' says:
-- Macro: int LINE_MAX
The largest text line that the text-oriented POSIX.2 utilities can
support. (If you are using the GNU versions of these utilities,
then there is no actual limit except that imposed by the available
virtual memory, but there is no way that the library can tell you
Someone suggested to split the group to multiple lines, like:
That seems to work with some tools like ls group permissions but it brokes at least newgrp and sg. So splitting the group info in /etc/groups does not sound tempting but I would like to know for sure that are there any changes that something breaks if the line length grows above 2048? Initial testing did not reveal any problems with basic tools but of course one hour quick testing can't reveal all possible bugs that might be hiding..
PS. Please CC me in replies.