delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/27/11:05:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=tW+oADj3l4uLjhqu
DNlRNhux3PYQczgFbnl/X/OelwXyvw/ezkIop+ZPuGIieWER8tI3aYk748LXInrQ
fHPrIhAtotn87dV7X/+sta3fTcusr2gbNeuGz6SWsm4AFs69bgKbaBX54z3bn7aS
i97VqcsSqGLeN+AveDQY+Vgohv8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=ZWEYZK7QDCAjAjnDcjiWZH
7m9oU=; b=wORsTHhjX1VVCRLiNzM0L3wN/jVBG1QAiOzL5z/tZfhFsIlFrEqQQq
GTPf0HXxFQHiWsciY+0QaJGOGy8OCNp/fSqwj0F4l8oYMbUko81xgz2ljizp0ZEw
FavjpKKK3Z/BbueHpC4QjYvv+cvmier3jn2ZFSkTWr9Ej/5RJOz3s=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*Ad:D*gov, H*MI:sk:c3kkub9, Hx-languages-length:1675, H*MI:sk:1392107
X-HELO: forward4j.cmail.yandex.net
Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Tue, 27 Sep 2016 18:01:07 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1737782863.20160927180107@yandex.ru>
To: Andrew Schulman <schulman DOT andrew AT epa DOT gov>, cygwin AT cygwin DOT com
Subject: Re: Use of SHELL env var by login
In-Reply-To: <80skub16p5kh2dij73308plbrdcelgdafn@4ax.com>
References: <ae3654ca-c23d-975b-61e2-b7edebb3fc6d AT raelity DOT com> <c3kkub9l8g3pa9vv5j29eo252s8btcaf39 AT 4ax DOT com> <1392107644 DOT 20160927141237 AT yandex DOT ru> <80skub16p5kh2dij73308plbrdcelgdafn AT 4ax DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Andrew Schulman!

>> Greetings, Andrew Schulman!
>> 
>> >> I just moved the cygwin installation. The "last" peculiarity I ran into 
>> >> was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe 
>> >> -i /Cygwin-Terminal.ico -", a ps showed
>> >> 
>> >>      /cygdrive/c/cygwin64/bin/bash
>> >> 
>> >> instead of /usr/bin/bash
>> >> 
>> >> I tracked this down the the windows setting for SHELL, the one you get 
>> >> to from windows' SystemProperties dialog, which was 
>> >> C:/cygwin64/bin/bash. The /etc/passwd file specifies /bin/bash.
>> >> 
>> >> Is this expected behavior? (Though I can see why SHELL is there and I'd 
>> >> need to change it)
>> 
>> > /etc/passwd is deprecated. Since Cygwin 2.5 IIRC, Cygwin no longer looks for it,
>> > getting information about users directly from the operating system instead.
>> > Unless you have a special need for it, you should remove it. Same for
>> > /etc/group.
>> 
>> > In the absence of /etc/passwd, setting SHELL is the right way to set your login
>> > shell.
>> 
>> One of the right ways, I'd say.
>> If your aim is the integration of both environments, you MAY set variables,
>> but if you then start a login shell, they may be voided by the startup scripts.
>> I would advise using "more other" ways to configure Cygwin, i.e. using SAM DB
>> comment field.

> OK. First I've heard of that. Can you explain how Ernie would do it?

It's in the user's guide, right where you'd expect it to be ;)
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc


-- 
With best regards,
Andrey Repin
Tuesday, September 27, 2016 18:00:31

Sorry for my terrible english...


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