From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54391 invoked by alias); 27 Sep 2016 15:05:24 -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 54352 invoked by uid 89); 27 Sep 2016 15:05:23 -0000 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 Received: from forward4j.cmail.yandex.net (HELO forward4j.cmail.yandex.net) (5.255.227.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Sep 2016 15:05:13 +0000 Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::27]) by forward4j.cmail.yandex.net (Yandex) with ESMTP id 6584B20CB3; Tue, 27 Sep 2016 18:05:11 +0300 (MSK) Received: from smtp3o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 8A0BD2940D0D; Tue, 27 Sep 2016 18:05:10 +0300 (MSK) Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Yjoq0REjvn-59ra4mW8; Tue, 27 Sep 2016 18:05:09 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 27 Sep 2016 15:01:07 -0000 Date: Tue, 27 Sep 2016 15:14:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1737782863.20160927180107@yandex.ru> To: Andrew Schulman , cygwin@cygwin.com Subject: Re: Use of SHELL env var by login In-Reply-To: <80skub16p5kh2dij73308plbrdcelgdafn@4ax.com> References: <1392107644.20160927141237@yandex.ru> <80skub16p5kh2dij73308plbrdcelgdafn@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00353.txt.bz2 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