From owner-freebsd-questions@FreeBSD.ORG Mon May 4 14:59:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE25410656E3 for ; Mon, 4 May 2009 14:59:16 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6404B8FC13 for ; Mon, 4 May 2009 14:59:16 +0000 (UTC) (envelope-from milu@dat.pl) Received: from localhost (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 8DC5A9E; Mon, 4 May 2009 16:59:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by localhost (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XkzGzNckJGFf; Mon, 4 May 2009 16:59:11 +0200 (CEST) Received: from snifi.localnet (87-204-241-35.ip.netia.com.pl [87.204.241.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 9EC5E26; Mon, 4 May 2009 16:59:10 +0200 (CEST) From: Maciej Milewski To: Shaun Friedle Date: Mon, 4 May 2009 16:59:06 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.29-ARCH; KDE/4.2.2; x86_64; ; ) References: <49FEFAA1.4030503@insipidity.co.uk> In-Reply-To: <49FEFAA1.4030503@insipidity.co.uk> MIME-Version: 1.0 Message-Id: <200905041659.06818.milu@dat.pl> Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Groups problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 14:59:17 -0000 Monday 04 May 2009 16:24:33 Shaun Friedle napisa=B3(a): > Hi, > I seem to have a weird problem with groups, it seems like the system > doesn't notice that I am in certain groups when it comes to file > permissions, and if I run groups or id with no arguments it also has > some groups missing from the list, but with my username as an argument > it is complete. I've never encountered this before, does anyone know > what the problem might be? > > [shaun@strange] ~ $ ls -lh /tmp/group_test > -rw-rw-r-- 1 www mercurial 0B 4 May 14:08 /tmp/group_test > [shaun@strange] ~ $ echo test > /tmp/group_test > bash: /tmp/group_test: Permission denied > [shaun@strange] ~ $ whoami > shaun > [shaun@strange] ~ $ grep shaun /etc/group > wheel:*:0:root,shaun > www:*:80:shaun > shaun:*:1002: > svn:*:1004:svn,shaun > mercurial:*:1006:shaun,www > [shaun@strange] ~ $ groups > shaun wheel svn > [shaun@strange] ~ $ groups shaun > shaun wheel www svn mercurial > [shaun@strange] ~ $ id > uid=3D1002(shaun) gid=3D1002(shaun) groups=3D1002(shaun),0(wheel),1004(sv= n) > [shaun@strange] ~ $ id shaun > uid=3D1002(shaun) gid=3D1002(shaun) > groups=3D1002(shaun),0(wheel),80(www),1004(svn),1006(mercurial) Have you done relogin on this account? =2D-=20 Pozdrawiam, Maciej Milewski