From owner-freebsd-questions@FreeBSD.ORG Fri Mar 3 14:57:25 2006 Return-Path: X-Original-To: questions@freebsd.org 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 1BDE716A422 for ; Fri, 3 Mar 2006 14:57:25 +0000 (GMT) (envelope-from donaldjoneill@gmail.com) Received: from smtp105.sbc.mail.re2.yahoo.com (smtp105.sbc.mail.re2.yahoo.com [68.142.229.100]) by mx1.FreeBSD.org (Postfix) with SMTP id 3D89843D49 for ; Fri, 3 Mar 2006 14:57:24 +0000 (GMT) (envelope-from donaldjoneill@gmail.com) Received: (qmail 46508 invoked from network); 3 Mar 2006 14:57:23 -0000 Received: from unknown (HELO pres1750.mylan.net) (donaldj@ameritech.net@69.212.23.169 with plain) by smtp105.sbc.mail.re2.yahoo.com with SMTP; 3 Mar 2006 14:57:23 -0000 From: "Donald J. O'Neill" To: freebsd-questions@freebsd.org Date: Fri, 3 Mar 2006 08:57:21 -0600 User-Agent: KMail/1.9.1 References: <7.0.1.0.2.20060303152354.022c0d48@broadpark.no> In-Reply-To: <7.0.1.0.2.20060303152354.022c0d48@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603030857.21697.donaldjoneill@gmail.com> Cc: questions@freebsd.org Subject: Re: Users and groups properly organized? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 14:57:25 -0000 On Friday 03 March 2006 08:32, Kristian Vaaf wrote: > Hello. > > Have you all ever had a look at your /etc/master.passwd and > /etc/group? Stupid question. But notice the user and group > identifications being thrown about as if they didn't matter. To me > they do, and I would like some order in my system. Starting with my > user and group identifications. > > Can I do something like this? > > find -s . -uid foo | xargs chown bar > find -s . -gid foo | xargs chgrp bar > > To be able to arrange master.passwd like this, > where UIDs and GIDs go by a chronological order? > > nobody:*:55555:55555::0:0:Unprivileged:/nonexistent:/usr/sbin/nologin > root:$1$xsL49xbt$of5hvUCiVT/b/D3B70bZv1:0:0::0:0:Core:/root:/usr/loca >l/bin/zsh > > daemon:*:1:1::0:0:System Processes:/root:/usr/sbin/nologin > operator:*:2:2::0:0:Operator:/:/usr/sbin/nologin > kmem:*:3:65533::0:0:KMem:/:/usr/sbin/nologin > bin:*:4:4::0:0:Binaries:/:/usr/sbin/nologin > tty:*:5:65533::0:0:Titty:/:/usr/sbin/nologin > news:*:6:6::0:0:News:/:/usr/sbin/nologin > man:*:7:7::0:0:Manuals:/usr/share/man:/usr/sbin/nologin > > sshd:*:101:101::0:0:Secure Shell:/var/empty:/usr/sbin/nologin > www:*:102:102::0:0:World Wide Web:/usr/local/www:/usr/sbin/nologin > ftp:*:103:103::0:0:File Transfer > Protocol:/home/websites:/usr/sbin/nologin > mysql:*:104:104::0:0:MySQL:/var/db/mysql:/sbin/nologin > proxy:*:105:105::0:0:Packet Filter:/nonexistent:/usr/sbin/nologin > smmsp:*:106:106::0:0:Sendmail > Submission:/var/spool/clientmqueue:/usr/sbin/nologin > mailnull:*:107:107::0:0:Sendmail > Default:/var/spool/mqueue:/usr/sbin/nologin > postfix:*:108:108::0:0:Postfix:/var/spool/postfix:/usr/sbin/nologin > cyrus:*:109:109::1111874400:0:Cyrus:/nonexistent:/usr/sbin/nologin > spamd:*:110:110::0:0:SpamAssassin:/var/spool/spamd:/sbin/nologin > vscan:*:111:111::0:0:Scanner:/var/amavis:/bin/sh > clamav:*:112:112::0:0:ClamAV:/nonexistent:/usr/sbin/nologin > tinydns:*:113:113::0:0:TinyDNS:/nonexistent:/usr/sbin/nologin > axfrdns:*:114:114::0:0:Transfers:/nonexistent:/usr/sbin/nologin > dnscache:*:115:115::0:0:Cache:/nonexistent:/usr/sbin/nologin > dnslog:*:116:116::0:0:Logging:/nonexistent:/usr/sbin/nologin > > vaaf:*:1001:0::0:0:Kristian:/home/vaaf:/usr/local/bin/zsh > nomad:*:1002:1002::0:0:Hednod:/home/nomad:/usr/local/bin/zsh > polvott:*:1003:1003::0:0:Thomas:/home/polvott:/usr/local/bin/zsh > speak:*:1004:1004::0:0:Poetry:/home/speak:/usr/local/bin/zsh > > And groups equally: > > nobody:*:55555: > wheel:*:0:root > > daemon:*:1: > operator:*:2:root > kmem:*:3: > bin:*:4: > tty:*:5: > news:*:6: > man:*:7: > sshd:*:101: > > www:*:102: > ftp:*:103: > mysql:*:104: > proxy:*:105: > smmsp:*:106: > mailnull:*:107: > postfix:*:108: > cyrus:*:119: > spamd:*:110: > vscan:*:111: > clamav:*:112: > tinydns:*:113: > axfrdns:*:114: > dnscache:*:115: > dnslog:*:116: > > nomad:*:1002: > polvott:*:1003: > speak:*:1004: > > And so on ... > > Maybe such order, harmony or balance or whatever will help > boost system performance? Just a superstitious thought. Cheers! :) > > All the best, > Vaaf > ========================= Try to take care of one problem at a time. If you don't look at them, they have plenty of harmony and balance, and they work. Concentrate more on 'make buildworld', you haven't gotten through that yet. Don