From owner-freebsd-questions Sat Oct 3 02:09:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA17232 for freebsd-questions-outgoing; Sat, 3 Oct 1998 02:09:39 -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 CAA17221 for ; Sat, 3 Oct 1998 02:09:25 -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 PAA11245; Sat, 3 Oct 1998 15:04:30 +0500 (KGT) Received: from localhost (fygrave@localhost) by freenet.kg (8.9.1/8.9.1) with SMTP id OAA17681; Sat, 3 Oct 1998 14:28:07 +0500 (KGT) Date: Sat, 3 Oct 1998 14:28:06 +0500 (KGT) From: CyberPsychotic To: groggy@iname.com cc: freebsd-questions@FreeBSD.ORG Subject: [problem solved]: ownership funnies. In-Reply-To: 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 > > The weird thing now, is that homedir group owner gets changed to user2 > > (for user1) when he logs in.. what may cause it? > > just "rmuser" both users. > then use "adduser" to add them again. :-), "if something doesn't work, quit and enter again". :) remains me some old joke.:) Yep. I was close to this step, just wanted to "check one thing more". The thing which led me away from the source of the problem, is that in BSD world ownership of parent directory are given to created files/directories, while with Linux/SVR4(so I was told) euid/egid or uid/gid pairs are used. And that's where I was looking for the thing to fix. > followed by "adduser" should fix > it. (the MicroShaft way ;) definitely. > adduser is in perl, and you may > want to read it to see what's > actually involved. also, see > /etc/group in addition to yes. I checked adduser source, and that's why I was so surprised, because I didn't find anything there, but updating pwd.db with -p key, after it creates user in master.passwd and group files. again, thanks to everyone who helped. I guess this tinny think should be mentioned somewhere in FAQ, since I found this thing pretty confusing for BSD newcomers:) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message