delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/12/15:27:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Fran <flitterio AT gmail DOT com>
Subject: Re: Syntax error in setfacl man page
Date: Tue, 12 Apr 2011 19:27:18 +0000 (UTC)
Lines: 33
Message-ID: <loom.20110412T212245-593@post.gmane.org>
References: <loom DOT 20110412T210842-559 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I wrote:

> Sometime in the last few months, setfacl stopped accepting two colons (::)
> after the keyword "other", as in this example:
> 
>   $ setfacl -s user::rw-,group::r--,other::r-- filename
>   setfacl: illegal acl entries
> 
> But the setfacl(1) man page continues to show the invalid syntax:
> 
>   o[ther]::perm

Upon further investigation, it appears that it may be setfacl that is
wrong rather than the man page.  According to the syntax summary given at:

  http://www.linuxmanpages.com/man1/setfacl.1.php

two colons are allowed after the keyword "other":

The setfacl utility recognizes the following ACL entry formats (blanks
inserted for clarity):

[d[efault]:] [u[ser]:]uid [:perms]
    Permissions of a named user. Permissions of the file owner if uid is empty. 
[d[efault]:] g[roup]:gid [:perms]
    Permissions of a named group. Permissions of the owning group if gid is empty. 
[d[efault]:] m[ask][:] [:perms]
    Effective rights mask 
[d[efault]:] o[ther][:] [:perms]
    Permissions of others.

--
Fran


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019