From owner-freebsd-questions Fri Oct 2 19:57:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15772 for freebsd-questions-outgoing; Fri, 2 Oct 1998 19:57:40 -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 TAA15767 for ; Fri, 2 Oct 1998 19:57:33 -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 IAA09883; Sat, 3 Oct 1998 08:52:22 +0500 (KGT) Received: from localhost (fygrave@localhost) by freenet.kg (8.9.1/8.9.1) with SMTP id IAA03970; Sat, 3 Oct 1998 08:16:12 +0500 (KGT) Date: Sat, 3 Oct 1998 08:16:11 +0500 (KGT) From: CyberPsychotic To: Max Euston cc: "freebsd-questions@FreeBSD.ORG" Subject: RE: ownership funnies. In-Reply-To: <01BDEDEC.852681C0.meuston@jmrodgers.com> 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 > > (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'. yep.. there's another weird thing which happens: before user user1 logs in, I do chown -R user1.user1 /home/user1 when user1 logs in, permittions are changed to user1.user2. I checked sources for login and getty, all chown calls they do, are for ttys. what does it then? (checked also profiles, bash_login, and bashrc file.. nothing). > >From 'man open': > > When a new file is created it is given the group of the directory which > contains it. oops.. so the problem is what does change g-owner for homedir then. > This suprised me too - not the way I was used to (from System V). Linux is probbably closer to sys-v here also. (what I used to work with) thanks for hints. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message