www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4B43893D.1050306@cygwin.com> |
Date: | Tue, 05 Jan 2010 13:47:25 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.7.1 upgrade: uid/gid issue |
References: | <hhvpm5$iqh$1 AT ger DOT gmane DOT org> |
In-Reply-To: | <hhvpm5$iqh$1@ger.gmane.org> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
On 01/05/2010 11:34 AM, Chuck wrote: > After upgrading to 1.7.1 and rebuilding /etc/group and /etc/passwd, it > seems my uid and gid have changed. What I mean is all of the files in my > $HOME directory show uid=400, gid=401 but that's not what's in the > passwd and group files now. How do I fix this? > > I *think* gid 401 used to be my Administators group (not 100% certain). > Now the Administrtors group uses a different gid though, and there are > many files already using that new gid. > > How do I fix this mess? > > Also, just because I log in to a domain, do I have to use the -d switch? > This PC is a laptop and it's not always logged in to the domain. If I > do run mkpasswd with -d, it wants to set my home directory to some > network share. You can specify your home path with the '-p' option. You're not required to use '-d' but you need at least the '-c' user to get your domain user in the file (minimally). '-d' will give you that and more. If your domain is not huge (greater than a couple of thousand users), use '-d'. Whichever flag you choose to use, use it for 'mkpasswd' and 'mkgroup'. Because your domain user is missing from the file, your ID is the default 400. See <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids>, <http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd>, and <http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup> for more details. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |