From owner-freebsd-questions Fri Oct 2 18:48:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA09661 for freebsd-questions-outgoing; Fri, 2 Oct 1998 18:48:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA09656 for ; Fri, 2 Oct 1998 18:48:23 -0700 (PDT) (envelope-from Studded@dal.net) Received: from dal.net (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id SAA21774; Fri, 2 Oct 1998 18:47:43 -0700 (PDT) (envelope-from Studded@dal.net) Message-ID: <3615823F.FF6F0E9D@dal.net> Date: Fri, 02 Oct 1998 18:47:43 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 2.2.7-STABLE-0929 i386) MIME-Version: 1.0 To: CyberPsychotic CC: freebsd-questions@FreeBSD.ORG Subject: Re: ownership funnies. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG CyberPsychotic wrote: > > Hello people, > Probably I miss something really stupid, anyway, here's my story, my box > is freebsd 2.2.7, now abit of expirement: Someone else already gave you an answer as to why the group wasn't what you expected, but I wanted to point something else out to you. > cat /etc/passwd | grep user1 DON'T use 'cat' to view a file, ever. Use 'more,' or better yet, use something that has built in safety checks like 'less.' This was discussed recently on one of the lists, check the archives if you want all the details. There is no reason at all to use more than one program in a situation like this where grep will do all the work for you, and a lot of reasons NOT to do that. For this situation the proper syntax is: grep user1 /etc/passwd > I remmeber I had to edit their ID/GID by hand. You would probably be better off to change /etc/group so that the gid's match the uid's before you add too many users to the system. Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message