This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TEST RELEASE: Cygwin 1.7.35-0.3


On Feb 25, 2015, at 8:07 AM, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> 
> What about chgrp `id -gâ?

That does exactly what you *donât* want here:

  $ ls -l id*
  -rw------- 1 Warren None 1.7K Feb 25 08:12 id_rsa
  -rw------- 1 Warren None  398 Feb 25 08:12 id_rsa.pub

  $ chgrp `id -g` id*
  $ ls -l id*
  -rw-rw---- 1 Warren Warren 1.7K Feb 25 08:12 id_rsa
  -rw-rw---- 1 Warren Warren  398 Feb 25 08:12 id_rsa.pub

How about this uglier alternative?

  $ chgrp `getent group 513 | cut -f1 -d:` ~/.ssh/*

âNoneâ has one of the well-known SIDs, doesnât it?
--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]