From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5401 invoked by alias); 22 Oct 2018 14:43:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5388 invoked by uid 89); 22 Oct 2018 14:43:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:192.168.0, H*u:WOW64, Hx-languages-length:1455, H*u:10.0 X-HELO: mail-it1-f180.google.com Received: from mail-it1-f180.google.com (HELO mail-it1-f180.google.com) (209.85.166.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Oct 2018 14:43:33 +0000 Received: by mail-it1-f180.google.com with SMTP id i191-v6so12772232iti.5 for ; Mon, 22 Oct 2018 07:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=O5/xlXci7Gyq6/gsymHFOD//ediZ2xpFPTnf1bSrzTg=; b=oMlDnWK+Qgv2H59EHGuKNIyc0S5ibSz+Z6HDiT77DUeoUEvU9dUi2qeIrVDbfYcm4R Vyd/DcfEadbIrUfTaByIMT7mdfe2mx/oC+iALYBFt4he9z+dOsiFXOxjV0WJBLlnK2t7 6GaydfhLebAlnBKsk++hHsHUmNta3tHknXTcRDsAXenfe7Lsyjx3ZW7OmTkmyGna+KIj tC3vXSg8r/lKT4IKDN+iE60WwDTYCglBwbl2bw5sD7pVjhrFu2h7h1UFSLrBR85R/QrV X9By65Dp7fbZx6mSIwP4HFuFQ8ZZjDWQBopjWj1qkiHOfghAZn+W3CUTJrNclZx0ATLK s8WQ== Return-Path: Received: from [192.168.0.3] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id k133-v6sm5801663itb.16.2018.10.22.07.43.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 07:43:30 -0700 (PDT) Subject: Re: Multiple problems (probably) starting up new installation To: cygwin@cygwin.com References: From: cyg Simple Openpgp: preference=signencrypt Message-ID: <19b8c26f-f80b-2fe5-af45-890484b81762@gmail.com> Date: Mon, 22 Oct 2018 14:43:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00173.txt.bz2 On 10/21/2018 6:24 PM, Michael Enright wrote: > I have a few files that I want to compile and run in a new Windows 10 setup. > I setup cygwin64 and copied the files to a subdirectory of my home directory. > I noticed that my prompt indicated that my home directory was > "/home/Mike Enright". I decided that in the long run that would be > bad. > So I followed a tip from Stack Overflow [1]to use /etc/passwd to fix > this. Apparently the idea is to map the Windows SID to my desired user > name "menright" instead of "\"Mike Enright\"". > And also rename the created home directory accordingly. > So now I have /home/menright and some files under there and > /etc/password contains a line that maps an SID to menright. > Rather than using /etc/passwd just create another account as menright and install Cygwin in the global user space. I have 3 accounts on my system and use three files to login to one or the other one. Advantage is that you can separate different projects based on user. #! /bin/bash cmd /c start `cygpath -w -- "${@//&/^&}"` #! /bin/sh start sudosu.bat $1 c:\windows\system32\runas /user:%1 "c:\opt\cygwin64\bin\mintty.exe -e /usr/bin/bash -il" exit sudosu menright sudosu '"Mike Enright"' HTH -- cyg Simple -- 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