From owner-freebsd-questions Fri Oct 2 20:02:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA16383 for freebsd-questions-outgoing; Fri, 2 Oct 1998 20:02:00 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from voland.freenet.bishkek.su (voland.freenet.bishkek.su [193.125.230.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA16323 for ; Fri, 2 Oct 1998 20:01:41 -0700 (PDT) (envelope-from fygrave@freenet.bishkek.su) Received: from freenet.kg (mail@freenet.bishkek.su [193.125.230.1]) by voland.freenet.bishkek.su (8.9.1/8.9.1) with ESMTP id IAA09891; Sat, 3 Oct 1998 08:56:28 +0500 (KGT) Received: from localhost (fygrave@localhost) by freenet.kg (8.9.1/8.9.1) with SMTP id IAA04073; Sat, 3 Oct 1998 08:20:18 +0500 (KGT) Date: Sat, 3 Oct 1998 08:20:17 +0500 (KGT) From: CyberPsychotic To: Studded cc: freebsd-questions@FreeBSD.ORG Subject: Re: ownership funnies. In-Reply-To: <3615823F.FF6F0E9D@dal.net> Message-ID: X-copyright: The content of this message is intellectual property of its author. So are all mistakes. X-warning: Anyone sending unwanted advertising e-mail to this address will be charged 25USD for network traffic and computing time. By extracting my address from this message or its header you agree to these terms. X-lummer: Bill Gates MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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. ok.. thanks. > > cat /etc/passwd | grep user1 > > DON'T use 'cat' to view a file, ever. control characters, right. :) ok. cat /etc/passwd | grep user1 | less :-) > 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 ok.. thanks. I will have a look. > 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 :) sure. > > 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. I checked this out also. it's also correct. ig. user1 has gid 1001, and user2 -- 1000.( I guess I pointed it out in my original message). The weird thing now, is that homedir group owner gets changed to user2 (for user1) when he logs in.. what may cause it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message