delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/18/14:37:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Server-Uuid: 0A4F2A26-D23B-4C5A-98BA-1B421465C24E
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: Strange group name
Date: Wed, 18 Feb 2004 13:33:57 -0600
Message-ID: <F67AB1DD14544242BE5BFE94F5939175760091@E2KMEMMCS1.ftbco.ftn.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "DePriest, Jason R." <jrdepriest AT ftb DOT com>
To: cygwin AT cygwin DOT com
X-OriginalArrivalTime: 18 Feb 2004 19:33:58.0025 (UTC) FILETIME=[271BA790:01C3F656]
X-WSS-ID: 6C2D61AF2GK3595906-01-01
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i1IJaqRe011829

> -----Original Message-----
> From: cygwin-owner at cygwin dot com 
> [mailto: cygwin-owner at cygwin dot com] On Behalf Of Igor
Pechtchanski
> Sent: Wednesday, February 18, 2004 8:46 AM
> To: Julian C H Stevens
> Cc: cygwin at cygwin dot com
> Subject: Re: Strange group name
> 
> 
> On Wed, 18 Feb 2004, Julian C H Stevens wrote:
> 
> > I have installed cygwin 1.5.6(0.108/3/2) and I notice that 
> the files in
> > my home directory have a group ownership of "mkgroup-l-d".
> >
> > I'm new to cygwin, and have installed it as a domain user on a
> > workstation running Windows 2000 Professional Ver 5.0 Build 
> 2195 Service
> > Pack 4.
> >
> > Please could someone suggest how this strange group name 
> has got into my
> > /etc/group file?
> 
> > Thanks,
> > Julian.
> 
> Julian,
> 
> <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.20>
explains
> this somewhat, but should be updated to say that "mkgroup-l-d" means
that
> the files are owned by a domain group that isn't in your /etc/group,
and
> that you should run "mkgroup -l -d >> /etc/group" when you're
connected to
> a domain controller to fix this.  Otherwise, that group name is
harmless,
> IIRC.  Perhaps Pierre or Corinna could chime in here...
> 	Igor
> P.S. Could you please set your mailer to wrap long lines?
> -- 
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between your mentor and his
route
> to the bathroom is a major career booster."  -- Patrick Naughton
> 
> --

If you are a member of a domain with a huge number of groups, you can
take a short cut to figure out what mkgroup-l-d is really looking for.

I did this:

depriest AT quagmire ~
$ ls -n -l
total 40
-rw-------    1 43363    10513        8591 Feb 17 12:47 .bash_history
-rwxr-xr-x    1 43363    10513         533 Dec 10 17:48 .bash_profile*
-rwxr-xr-x    1 43363    10513         625 Dec 10 17:48 .bashrc*
drwxr-xr-x+   4 43363    10513        4096 Jan  8 18:02 .cpan/
-rwxr-xr-x    1 43363    10513         267 Dec 10 17:48 .inputrc*
drwx------+   2 43363    10513           0 Dec 23 11:34 .links/
drwxr-xr-x+   2 43363    10513           0 Dec 15 13:07 .ncftp/
drwx------+   2 43363    10513        4096 Jan  8 14:20 .ssh/
-rw-------    1 43363    10513        6020 Feb  9 15:04 .viminfo
-rwxr-xr-x    1 43363    10513         205 Dec 15 13:17 .wgetrc*
depriest AT quagmire ~
$ mkgroup -d | grep 10513
Domain Users:S-1-5-21-1718497100-374411357-7473742-513:10513:
depriest AT quagmire ~
$ 

The '-n' lists the user names and groups as their GID/UID number.  I
then used mkgroup to list all the domain groups and grep'd for the GID
listed.
Problem solved.  It was looking for Domain Users.
I can just put that entry in my /etc/group file and all is good now.

See:

depriest AT quagmire ~
$ ls -l
total 40
-rw-------    1 depriest users_d      8591 Feb 17 12:47 .bash_history
-rwxr-xr-x    1 depriest users_d       533 Dec 10 17:48 .bash_profile*
-rwxr-xr-x    1 depriest users_d       625 Dec 10 17:48 .bashrc*
drwxr-xr-x+   4 depriest users_d      4096 Jan  8 18:02 .cpan/
-rwxr-xr-x    1 depriest users_d       267 Dec 10 17:48 .inputrc*
drwx------+   2 depriest users_d         0 Dec 23 11:34 .links/
drwxr-xr-x+   2 depriest users_d         0 Dec 15 13:07 .ncftp/
drwx------+   2 depriest users_d      4096 Jan  8 14:20 .ssh/
-rw-------    1 depriest users_d      6020 Feb  9 15:04 .viminfo
-rwxr-xr-x    1 depriest users_d       205 Dec 15 13:17 .wgetrc*
depriest AT quagmire ~
$ 

I changed the display name of the group from 'Domain Users' to 'users_d'
in my /etc/group file so it would fit in the column better.

-Jason


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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