From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 07:24:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895CD16A4CE for ; Tue, 24 Feb 2004 07:24:46 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C32E43D1D for ; Tue, 24 Feb 2004 07:24:45 -0800 (PST) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id i1OFQqQc043120; Tue, 24 Feb 2004 16:26:52 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id i1OFQppB043119; Tue, 24 Feb 2004 16:26:51 +0100 (CET) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Tue, 24 Feb 2004 16:26:51 +0100 From: Ruben de Groot To: Garance A Drosihn Message-ID: <20040224152651.GA40124@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Garance A Drosihn , aaron@alpete.com, freebsd-questions@freebsd.org References: <51740.204.118.74.216.1077592204.squirrel@mail.alpete.com> <51780.204.118.74.216.1077598067.squirrel@mail.alpete.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org cc: aaron@alpete.com Subject: Re: filesystem permissions using dump on live filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 15:24:46 -0000 On Tue, Feb 24, 2004 at 12:32:07AM -0500, Garance A Drosihn typed: > At 11:47 PM -0500 2/23/04, Aaron Peterson wrote: > > > i put a user in the operator group in /etc/group: > > > >-snip- > > > >> and attempted to dump a live filesystem: > > > >-snip- > > > >> what am i missing here? > > > >nevermind. i had to log out and log back in. that solved my > >problems. now my only question is why does one have to log > >out and log in for addition to a new group to take effect? > > It is expected that the list of groups that you are a member of > will not change very frequently. Thus, the list of your groups > is computed at login time, and is kept in memory. > > If this was not done, then *anything* which checked your groups > for access (such as reading a file) would have to read through > all of /etc/group to re-calculate that list of groups. Now, it > would be easy enough to optimize that simple case (on a machine > using just /etc/group), but there is no simple optimization if > on machines which are using something like NIS+ or other network > directory services to hold the group information. > > If we really really had to, we could implement something that > did that job acceptably well, but it's much easier to just > tell people "log out, and log back in". Or don't even logout, > just 'ssh -l localhost' and start a new session. I would usually just type "newgrp operators" Ruben > -- > Garance Alistair Drosehn = gad@gilead.netel.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"