Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 19:04:03 -0800
From:      "David Fuchs" <dfuchs@uniserve.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Spanning multiple lines in /etc/group
Message-ID:  <002101c09632$c9cc1420$0201a8c0@beastie.net>

next in thread | raw e-mail | index | archive | help
I'd like to keep my /etc/group file as clean as possible.  I have about 60
users that need to be part of 3 different groups.  Is there a way to add all
these users to a group without needing to keep all 60 names on one line?
I've found that this method works:

group1:*:500:user1,user2,user3
group1:*:500:user4,user5,user6

However, If I create multiple instances of a group (as shown above)
everything works great, but when the periodic script runs (cron), it preens
the group file and only leaves the last occurrence of each group
instantiation.  Is there any way to specify only 5 or 6 users per line?  It
would definitely help me in the future when I need to add or remove a user.

Thanks in advance for help everyone!

-David Fuchs



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002101c09632$c9cc1420$0201a8c0>