From owner-freebsd-questions Fri Oct 2 07:26:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA04446 for freebsd-questions-outgoing; Fri, 2 Oct 1998 07:26:55 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gw.jmrodgers.com (gw.jmrodgers.com [205.247.224.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA04433 for ; Fri, 2 Oct 1998 07:26:46 -0700 (PDT) (envelope-from meuston@jmrodgers.com) Received: from max.jmrodgers.com (max.jmrodgers.com [205.247.224.209]) by gw.jmrodgers.com (8.8.8/8.8.8) with SMTP id KAA02487; Fri, 2 Oct 1998 10:07:55 -0400 (EDT) (envelope-from meuston@jmrodgers.com) Received: by localhost with Microsoft MAPI; Fri, 2 Oct 1998 10:07:53 -0400 Message-ID: <01BDEDEC.852681C0.meuston@jmrodgers.com> From: Max Euston To: "'CyberPsychotic'" , "freebsd-questions@FreeBSD.ORG" Subject: RE: ownership funnies. Date: Fri, 2 Oct 1998 10:07:48 -0400 Organization: J.M. Rodgers Co., Inc. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (assuming 'touch foo' is creating 'foo'; i.e. it doesn't already exist...) Check the group ownership of the directories in which you are creating 'foo'. >From 'man open': When a new file is created it is given the group of the directory which contains it. This suprised me too - not the way I was used to (from System V). [Note: I was concerned about this, but have checked and...] - You can NOT 'chgrp' a directory to a group of which you are NOT a member. - You can NOT 'chmod g+s' a file that is owned by a group of which you are NOT a member. Hope this helps. Max --- Max Euston On Friday, October 02, 1998 6:59 AM, CyberPsychotic [SMTP:fygrave@freenet.bishkek.su] wrote: [snip] > now I login as user1: > touch foo; ls -al foo > foo is owned by user1, but group is user2 why??! > more intersting is that user2 get the same thing but : user2 bin. Any > ideas what may cause this? any files I have missed? I more linux user, > where passwd things are abit different, so I probably may have missed > something really familiar. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message