From owner-freebsd-questions Thu Nov 14 22:13:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA18102 for questions-outgoing; Thu, 14 Nov 1996 22:13:51 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA18097 for ; Thu, 14 Nov 1996 22:13:49 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id WAA28425; Thu, 14 Nov 1996 22:13:45 -0800 (PST) Date: Thu, 14 Nov 1996 22:13:44 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Gianmarco Giovannelli cc: questions@FreeBSD.org Subject: Re: users & mail & group In-Reply-To: <3.0.32.19961113203227.00a0681c@scotty.masternet.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 13 Nov 1996, Gianmarco Giovannelli wrote: > 1) Why adduser add the user name in /etc/group even if it isn't mandatory ? > I explain better . If I create the user "gmarco" that belongs to group 2000 > (user) adduser add gmarco to 2000 group in /etc/group even if 2000 is the > default group of gmarco. I always have to delete the username after the > group by hand. It begin to be annoying :-) Adduser enforces a type of system administration where everyone has their own login group and you add people to other groups for permissions. It solves problems with the 1024 character limit / line in /etc/group and makes some sysadmin tasks really easy. Note that you can configure adduser to put the user in other groups, and if you got really annoyed with it you could vi /usr/bin/adduser and fix it. :) adduser is a perl script BTW. > 2) How I can send a mail to all the user of a group ? I.e. I'd like to send > a mail to all the users belong to 2000 group. Is it possible or I must use > an alias followed by all the names in the same line ? (I have 300 users to > administer and I think it isn't safe to add everyone to the line of the > group.) Copy the group line into /etc/aliases, put a space after the :, save/quit, and run 'newaliases'. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major