delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/18/20:23: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
Message-ID: <000d01c2d7b5$a2e42bb0$aae986d9@webdev>
Reply-To: "Elfyn McBratney" <cygwin AT cygwin DOT com>
From: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>,
"christophe thiebot" <christophe_thiebot AT hotmail DOT com>
References: <BAY2-F142nwZvIPNTAb0003378e AT hotmail DOT com>
Subject: Re: No man pages
Date: Wed, 19 Feb 2003 01:24:23 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> When I run mkpasswd -l, I have the same entries as in my /etc/passwd
> and when I run mkgroup -l, I have the same entries as in my /etc/group.
> But I have no "mkpasswd" group defined in /etc/group. Does it matter
anyway?

But they may not have the exact sid's or group id's. If you get a 'mkpasswd'
as the username you need to run mkpasswd to refresh a stale item(s). Same
with mkgroup. If you still end up having mkpasswd/mkgroup as your
username/group then there's a problem somewhere.

> What typical group do you have on a local user? Can we add a group other
> than manually in /etc/group (like with with an system admin tool)?

Once the user has been added to windows either via gui or the console `net'
command then you can add a user to /etc/passwd by

$ mkpasswd -l -u USERNAME >>/etc/passwd

and to add a new group, mkgroup doesn't have this same kind of option AFAIK,
I use this

mkgroup -l |grep GROUPNAME >>/etc/group


Regards,

Elfyn McBratney
elfyn AT exposure DOT org DOT uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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