delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/29/04:45:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 29 Apr 2011 10:44:39 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Enable logging remote ssh contacts
Message-ID: <20110429084439.GB27934@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <31481290 DOT post AT talk DOT nabble DOT com> <ip7d1h$tt4$1 AT dough DOT gmane DOT org> <31484865 DOT post AT talk DOT nabble DOT com> <31485107 DOT post AT talk DOT nabble DOT com> <ip9h0a$39g$1 AT dough DOT gmane DOT org> <31490012 DOT post AT talk DOT nabble DOT com> <4DB889D9 DOT 2070703 AT laposte DOT net> <31495952 DOT post AT talk DOT nabble DOT com> <4DB9E086 DOT 30200 AT laposte DOT net> <31503455 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <31503455.post@talk.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Apr 29 01:21, Fokke Nauta wrote:
> Cyrille Lefevre wrote:
> > no, setfacl %-|
> > 
> > (getfacl messages  | echo group:Users:r--) | setfacl -m -f - messages
> > 
> > PS : replace Users by the equivalents group on your system (Utilisateurs 
> > in french under Vista, don't know under XP ?)
> > well, the last one :
> > v2$ id
> > uid=1000(Cyrille) gid=513(None) 
> > groups=513(None),0(root),544(Administrateurs),545(Utilisateurs)
> > 
> > 
> > Regards,
> > 
> > Cyrille Lefevre
> > 
> 
> Hi,
> 
> I entered (getfacl messages  | echo group:Users:r--) | setfacl -m -f -
> messages
> and got as result: Segmentation fault (core dumped)

I can't reproduce the SEGV.  However, your expression is wrong
anyway:

- (getfacl messages | echo group:Users:r--)

  This expression only echos the "group:Users:r--" line, the output
  of getfacl is simple lost since echo doesn't copy its stdin to
  stdout.  What you really want is this:

  (getfacl messages ; echo group:Users:r--)

  Note the semicolon instead of the pipe.

- setfacl -m -f -

  This doesn't work.  The -f option is always a set option and can't
  combined with the -m option.  So just use

  setfacl -f -
  
- Did you notice Cyrille's hint about the name of the Users group?
  It's not always Users, rather it is localized, for instance
  "Utilisateurs" in french, "Benutzer" in german, etc.  If you
  use "Users" on a non-English system, you are probably out of luck.

  Fortunately you can also use the gid instead of the group name:

  (getfacl messages ; echo group:545:r--) | setfacl -f -


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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