From: Fokke Nauta <fnauta@solfon.nl>
To: cygwin@cygwin.com
Subject: Re: Enable logging remote ssh contacts
Date: Fri, 29 Apr 2011 13:59:00 -0000 [thread overview]
Message-ID: <31503700.post@talk.nabble.com> (raw)
In-Reply-To: <20110429084439.GB27934@calimero.vinschen.de>
Corinna Vinschen-2 wrote:
>
> 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
>
Hi,
Thanks.
Entering "(getfacl messages ; echo group:545:r--) | setfacl -f -" starts up
the help function of setfacl.
Replacing the last dash by messages results in an error message.
Yes, I noticed Cyrilles hint. I am working on an English machine and the
command id shows the group Users indeed.
Regards,
Fokke
--
View this message in context: http://old.nabble.com/Enable-logging-remote-ssh-contacts-tp31478200p31503700.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
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
next prev parent reply other threads:[~2011-04-29 9:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-26 14:04 Fokke Nauta
2011-04-26 14:11 ` David Sastre
2011-04-26 15:10 ` Fokke Nauta
2011-04-26 16:33 ` Larry Hall (Cygwin)
2011-04-26 21:26 ` Fokke Nauta
2011-04-27 1:53 ` René Berber
2011-04-27 10:56 ` Fokke Nauta
2011-04-27 11:46 ` Fokke Nauta
2011-04-27 21:23 ` René Berber
2011-04-28 3:49 ` Fokke Nauta
2011-04-28 4:27 ` René Berber
2011-04-28 15:10 ` Fokke Nauta
2011-04-28 4:30 ` Cyrille Lefevre
2011-04-28 15:07 ` Fokke Nauta
2011-04-29 8:16 ` Cyrille Lefevre
2011-04-29 9:08 ` Fokke Nauta
2011-04-29 9:32 ` Corinna Vinschen
2011-04-29 13:59 ` Fokke Nauta [this message]
2011-04-29 16:32 ` Corinna Vinschen
2011-04-29 17:52 ` Fokke Nauta
2011-04-29 18:10 ` Cyrille Lefevre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31503700.post@talk.nabble.com \
--to=fnauta@solfon.nl \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).