delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/16/11:03:09

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: <4A5F3FCD.30006@cygwin.com>
Date: Thu, 16 Jul 2009 10:57:17 -0400
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: Username hassles
References: <loom DOT 20090713T123539-571 AT post DOT gmane DOT org> <h3fbai$u99$1 AT ger DOT gmane DOT org> <utz1gwt9t DOT fsf AT gmail DOT com> <20090713150949 DOT GF4505 AT calimero DOT vinschen DOT de> <87bpnoa49i DOT fsf AT gmail DOT com> <4A5B8234 DOT 4020701 AT cygwin DOT com> <877hyc9tsn DOT fsf AT gmail DOT com> <4A5BB021 DOT 20101 AT cygwin DOT com> <87k529f3wm DOT fsf AT gmail DOT com>
In-Reply-To: <87k529f3wm.fsf@gmail.com>
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

Paul Mead wrote:
> "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> writes:
> 
>> And the problem is that you want the files installed by Cygwin's "setup.exe"
>> to use "paul" instead of "MEAD8998".  Yeah, that will happen because
>> "setup.exe" is a Windows program and is going to use the Windows SID of
>> the user installing it.  If you prefer "paul" to be used, you need to do
>> one of two things:
>>
>>   1. Remove the "MEAD8998" user from your '/etc/passwd'.  It's presumably
>>      before the "paul" user in the file and has the same SID.
>>
>>   2. "chmod -R paul / /usr/bin /usr/lib"
>>
>> If "MEAD8998" and "paul" exist in your '/etc/passwd' file and share the
>> same SID, use (1).  Otherwise, use (2).
> I seem to have 'MEAD8998' and not 'paul'. And I'm guessing that your
> option 2 would have do be done more than once, as it doesn't change how
> setup.exe is installing files.

'setup.exe' installs files with the user name of the user that invoked
'setup.exe' so depending on who you update your Cygwin installation as,
you may need to do this again.  Obviously, it would be preferable to do
the updates as the same user as you want to "own" the files. ;-)

> In that case, it would probably be better all round if I use MEAD8998
> throughout and drop 'paul', at least on that machine.
> 
> So, I've tried to find where the user 'paul' is coming from and can't
> find anywhere to change that either. Where is the current username held,
> and how can I change it?

Cygwin gets user names from the '/etc/passwd' file.

Perhaps you have a local user 'paul' on your machine?

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

- Raw text -


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