From owner-freebsd-questions@FreeBSD.ORG Sat Jun 12 03:43:48 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 2A2D316A4CE for ; Sat, 12 Jun 2004 03:43:48 +0000 (GMT) Received: from fed1rmmtao05.cox.net (fed1rmmtao05.cox.net [68.230.241.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D48A43D45 for ; Sat, 12 Jun 2004 03:43:47 +0000 (GMT) (envelope-from mnavarre@cox.net) Received: from reichlieu.lan ([68.6.195.68]) by fed1rmmtao05.cox.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040612034316.BAXD18472.fed1rmmtao05.cox.net@reichlieu.lan>; Fri, 11 Jun 2004 23:43:16 -0400 Received: from reichlieu.lan (localhost [127.0.0.1]) by reichlieu.lan (8.12.11/8.12.11) with ESMTP id i5C3hHJA048683; Fri, 11 Jun 2004 20:43:17 -0700 (PDT) (envelope-from mnavarre@reichlieu.lan) Received: from localhost (localhost [[UNIX: localhost]]) by reichlieu.lan (8.12.11/8.12.11/Submit) id i5C3hGhJ048682; Fri, 11 Jun 2004 20:43:16 -0700 (PDT) (envelope-from mnavarre) From: Matt Navarre To: freebsd-questions@freebsd.org Date: Fri, 11 Jun 2004 20:43:16 -0700 User-Agent: KMail/1.6.2 References: <004f01c4501c$6481c8b0$0200a8c0@LLAPTOP> <40CA60D7.1020504@users.sourceforge.net> <007501c45020$f40d62b0$0200a8c0@LLAPTOP> In-Reply-To: <007501c45020$f40d62b0$0200a8c0@LLAPTOP> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406112043.16503.mnavarre@cox.net> X-SA-Scanned: 0 () X-Scanned-By: MIMEDefang 2.41 cc: LW Ellis Subject: Re: (add new users & groups) 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: Sat, 12 Jun 2004 03:43:48 -0000 On Friday 11 June 2004 06:59, LW Ellis wrote: > OK, I got that part down.. > (sysinstall and adding the user) > I've ordered a FreeBSD book based on the recommendations I received here > (this list) > Until then I'm pretty much shooting in the dark, learning as I go. > > I'm not clear on the Unix group/user setup > > >From what I have read, FreeBSD will place users in a default group > > Do I need a group? I will have about 6 users (not all at once) > DO I add a group before users? > Will it be to my benefit down the road to make a group now? Groups are used for, well, grouping users. Which is kind of opaque, but true. Basically it has to do with Unix's permission scheme. When you ls -l a file you'll se something like this: -rwxrwxrwx 1 mnavarre mnavarre 4542 Dec 15 2002 yaptu.py ^^^ ^^^ ^^^ ^^ ^^^ permissions owner group size date fname Notice the permissions repeat the rwx sequence three times, they stand for read, write and execute, each set of letters controls access to the file for a diffetent class of users, user group or other. these are considered in that order, i.e. if a user tries to write a file first the owner permissions are considered, if they allow writing the file is written and we don't look at the other permissions, if not we move on to the group permissions if the user belongs to the group and there is group write permission file is written, we stop, etc., if not we move on to the other permissions, this encompases all users who didn't fall into the first two classes. Keep in mind that many people can belong to one group, that's what they're for. You can have a group for a project and put all the users involved in that project in a group and use the group permissions to control access to those files. What most people do is make a group for each user that only they belong to and have that be their main group. users can then be added to other groups, and new groups can be added as need arises. This is kind of brief, and maybe not that helpful, but it's a start. You'll also want to read the chmod(1) man page and the Handbook sections on permissions: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html And on Users and account magement: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/users.html It might take a bit to get your head around, but you will. > > I can't thank you and everyone else that has helped, enough. > I know newbys can be a pain. > Leon OK, Matt -- "We all enter this world in the same way: naked, screaming, and soaked in blood. But if you live your life right, that kind of thing doesn't have to stop there." -- Dana Gould