On Feb 25, 2015, at 8:07 AM, Corinna Vinschen <corinna-cyg...@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