From owner-freebsd-questions@FreeBSD.ORG Wed Nov 18 15:21:58 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 A32DC106566C for ; Wed, 18 Nov 2009 15:21:58 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 67D038FC0C for ; Wed, 18 Nov 2009 15:21:58 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id nAIFLtk2065158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Nov 2009 09:21:56 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id nAIFLtVd014515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Nov 2009 09:21:55 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id nAIFLstt014512; Wed, 18 Nov 2009 09:21:54 -0600 (CST) (envelope-from dan) Date: Wed, 18 Nov 2009 09:21:54 -0600 From: Dan Nelson To: James Phillips Message-ID: <20091118152153.GB89004@dan.emsphone.com> References: <727196.65984.qm@web65510.mail.ac4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <727196.65984.qm@web65510.mail.ac4.yahoo.com> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Wed, 18 Nov 2009 09:21:56 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: Do permissions take time to take effect? 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: Wed, 18 Nov 2009 15:21:58 -0000 In the last episode (Nov 17), James Phillips said: > I wanted to create a shared directory writable by all users. When it > initially failed, I assumed there may be a blanket ban on writing to > directories owned by root. Today, I was able to write to the root-owned > "Share" directory. However, when I re-created the directory owned by a > special-purpose "Share" user, I ran into the same problem again. > > $ cd > $ pwd > /home/james > $ cd /home/Share > $ ls -la > total 4 > drwxrwxr-x 2 root users 512 Nov 14 09:39 . > drwxr-xr-x 5 root wheel 512 Nov 14 09:39 .. > $ grep users /etc/group > users:*:100:james,backup > $ cat > test.txt > What? now it worked? You are probably in the "users" group. Running either the "groups" or "id" command will say for sure. > $ ls > test.txt > $ rm test.txt > > ***After creating a special "Share" user*** > > $ cd /home/Share > $ ls -la > total 4 > drwxrwxr-x 2 Share Share 512 Nov 17 21:04 . > drwxr-xr-x 5 root wheel 512 Nov 17 21:04 .. > $ cat > test.txt > cannot create test.txt: Permission denied > $ grep Share /etc/group > Share:*:1003:james,backup > $ If you are currently either the "james" or "backup" user, and added the Share group membership on another tty, then you may need to log out and back in for the system to assign your new group membership to your session. Filesystem permissions take effect immediately, but group memberships are assigned once, at login. -- Dan Nelson dnelson@allantgroup.com