X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <hb2bil$o3s$1@ger.gmane.org>
References: <hb2bil$o3s$1@ger.gmane.org>
From: "DePriest, Jason R." <jrdepriest@gmail.com>
Date: Tue, 13 Oct 2009 12:08:46 -0500
Message-ID: <31b7d2790910131008w78074b1fn63a05ce864196215@mail.gmail.com>
Subject: Re: How to deny directory-access for one dedicated user
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Oct 13, 2009 at 11:57 AM, Matthias Meyer <> wrote:
> Hello,
>
> I run cygwin on Windows (XP as well as Vista) with NTFS.
>
> I want to deny access to a directory for one dedicated user.
> I tried it with:
> $ setfacl -m u:backup:0 /cygdrive/c/test
> $ getfacl /cygdrive/c/test
> # file: /cygdrive/c/test
> # owner: meyer
> # group: Kein
> user::rwx
> user:Backup:---
> group::r-x
> mask:rwx
> other:r-x
> default:user::rwx
> default:group::r-x
> default:other:r-x
>
> But nevertheless, user Backup can access the directory as well as the files
> in it.
>
> How to reach my goal?
> Thanks
> Matthias
> --
> Don't Panic
>

Use Windows utility 'cacls C:\Test /D Backup' instead of setfacls?

-Jason

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

