From owner-freebsd-questions@FreeBSD.ORG Wed Nov 18 05:13:12 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 385311065670 for ; Wed, 18 Nov 2009 05:13:12 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE898FC16 for ; Wed, 18 Nov 2009 05:13:11 +0000 (UTC) Received: by pxi12 with SMTP id 12so526981pxi.3 for ; Tue, 17 Nov 2009 21:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=QwSfuFWSkRKtcrY3ZxC34bwgvSlMcSzb7v417R49rM8=; b=sl7JzGZfpXoMFyttJfV3sRA7PK1VuKFN6ac+S9Y1hVl4qkIkx73DwykVpUpsOhmrBo mjI/d0dFhH6XVfLt7XW6y1HeLDTIUpEVae7qdaGqeEpvwVWekK/nm2NzS9c44jq5e161 ByQWSbvGssUOJQDEC9/n7lvB4HDDTuQq1hq6Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=L0ioVSZpLz6HHkmiJOqO7jxtrc+bexTmUfb9k10DwtrH1yZKfvcHPxNgv5iEeK3Qw+ LoD9TZsw5chDpDiaG+cwZdbE1o7H95hB5kSCgpAuOuRUOs/CT2gU/OfWA65JKZWR2XKg dsNgjWf5z4OySj4tuguqXhax49w7140B85vh4= MIME-Version: 1.0 Received: by 10.142.209.20 with SMTP id h20mr222310wfg.167.1258521191527; Tue, 17 Nov 2009 21:13:11 -0800 (PST) In-Reply-To: <727196.65984.qm@web65510.mail.ac4.yahoo.com> References: <727196.65984.qm@web65510.mail.ac4.yahoo.com> Date: Tue, 17 Nov 2009 23:13:11 -0600 Message-ID: <6201873e0911172113l304920acg531fc50fac173e3d@mail.gmail.com> From: Adam Vande More To: James Phillips Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 05:13:12 -0000 On Tue, Nov 17, 2009 at 10:49 PM, James Phillips wrote: > Hello, > > 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? > $ 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 > $ > > Incidentally, I had another reason for creating a special-purpose "Share" > user: I am exporting /home to Debian (Linux) clients. Since the "system" > groups conflict with the Debian choices, I modified /var/yp/Makefile to only > export users and groups in the range of 1001-2000. > > Regards, > > James Phillips > > PS: the first time, I made the mistake of adding whitespace in /etc/group > (daily run checks this somehow) > Is a blank line required at the end of the file? > PPS: Tried adding blank line: no effect. > > Have you tried the handbook? http://www.freebsd.org/doc/en/books/handbook/network-nis.html -- Adam Vande More