From owner-freebsd-questions Mon Nov 19 17:34:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 67C4D37B416 for ; Mon, 19 Nov 2001 17:34:06 -0800 (PST) Received: (qmail 64778 invoked by uid 100); 20 Nov 2001 01:34:09 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15353.45841.476855.884298@guru.mired.org> Date: Mon, 19 Nov 2001 19:34:09 -0600 To: jaime@snowmoon.com Cc: questions@freebsd.org Subject: Re: Writable directory except for a given user In-Reply-To: <20011119194626.K48577-100000@malkav.snowmoon.com> References: <15353.33437.744317.153424@guru.mired.org> <20011119194626.K48577-100000@malkav.snowmoon.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jaime@snowmoon.com types: > On Mon, 19 Nov 2001, Mike Meyer wrote: > > Sure - create a group that you put all users in by default, and then > > take blacklisted users out of it. > I'm aware of this idea, but in my case we're talking about > hundreds of users. Is there a way to configure adduser (or FreeBSD > itself) to add a user to a given group by default? Other than the obvious > /etc/adduser.* files, I mean. :) What about a method of doing this and > taking care of all of my hundreds of users that already exist? Can you make that the users gid, as opposed to just being another group? If so, script to fix /etc/master.passwd should be straightforward. Given that you only have to do it once, ed might be the fastest way to do it. If you need to create a group with hundreds of users - you might want to find a different approach, like sudo for the operations you want to allow on the directory. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message