delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/22/14:04:41

X-Spam-Check-By: sourceware.org
Message-ID: <43836BB9.F79C8D4@dessent.net>
Date: Tue, 22 Nov 2005 11:04:25 -0800
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: mkpasswd, mkgroup - initial setup of group, home dir
References: <BAY104-F12EAAC31F005ED12E74E5DAD520 AT phx DOT gbl>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Robert Body wrote:

> Hi, I installed on a networked computer, but i don't want my cygwin to be
> part of that network as far as username/groups go (I don't want to add all

Use -l instead of -d when running mkgroup and mkpasswd.

> I would like to change these to "Owner" and "mygroup", and I would like my

The user and group names in the /etc/passwd and /etc/group files should
match those in Windows.  The purpose of those files is to mirror the
actual Windows user and group names for programs that expect to be able
to read them from those files.  You can't arbitrarily define user/group
names there, you have to do that in Windows.  You should probably stick
to only creating them with mkpasswd and mkgroup and not hand editing
them to contain other values.

Or put differently, just because you change your username in /etc/passwd
doesn't mean you've actually changed your account's user name -- and in
fact you may cause strange failures if the two aren't in sync.  If you
want a different group name, create one in Windows and add yourself to
it, and then re-run mkgroup to keep /etc/group in sync.

> default home directory to be /home/Owner  (which is really
> C:\cygwin\home\owner in windows). The system insists on making my home
> directory "/cygdrive/u" even if I modify /etc/passwd file

http://cygwin.com/faq/faq.setup.html#faq.setup.home

> I read about "mkpasswd -d" - well I don't want people on network added to my
> cygwin setup,

Then don't use -d.

Brian

--
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