delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/04/14/11:49:53

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:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=UdpTaEteQ9Is2X8a
EWqcvVr0CgDbialMWP1gbiPlGxQs1TRdkdsP0RnZ6CGTj2gUtq5yJrNbW+IUFH2h
YSG8zuuTkatZ3MOojl4znnBAcd48B19Txh52vz2BXwCUI3onRxIyYf97BN6qDvDq
4rKZiGBCRBOAunbZ86eRUAb/s6M=
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:subject:references:to:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=4nsyB+JrR/ugAqvxS7Zvr4
Gdysc=; b=bYoYAlurucvwkQL31ynjXEgHjoKlQ9Wp45mZVfNQbXrmeDlWlXc3p8
8BsuoIkJ+r1kqe8mV8UD7m9+heQeKosEJnCg3GH7sNRfIqgSTyQYiWdW8iWq4eS5
ilvIs65PIgnwsOyh0PVrDKMmEUkKqkaIfdzOn2rVbDNG4/nbGjlYs=
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=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=alberta, Hx-spam-relays-external:shaw.ca, H*r:shaw.ca, H*RU:shaw.ca
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.2 cv=XbT59Mx5 c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=udpAQHvQh1TZaFfqY9wA:9 a=QEXdDO2ut3YA:10
Subject: Re: how to make sshd start a shell other than bash when I log in?
References: <m2qdec1cc0bk75daeb1rjvvufpoh38irke AT 4ax DOT com> <ocq14k$smg$1 AT blaine DOT gmane DOT org>
To: cygwin AT cygwin DOT com
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <88ece146-8c00-698b-ed68-142dc8ddee36@SystematicSw.ab.ca>
Date: Fri, 14 Apr 2017 09:49:31 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <ocq14k$smg$1@blaine.gmane.org>
X-CMAE-Envelope: MS4wfDQ/bJ6bzkZf2SgXLFdwslBXYb3/gVdVOTY1X145wl1zYVTejJwqZEOAKrK/e4Mu85ikCFpwXxd92GD1bYutaVA61SUUQ5NkTFnOfCCtql6PT76LNS00 n423c0WMl1Ex+oWpvmNi+avPzV7VczezE9sFSGbPZv2FOzaiD3I8Is5KGT6sQShJPqCsNCFWRLIaeA==
X-IsSubscribed: yes

On 2017-04-14 02:27, Thorsten Kampe wrote:
> * Andrew Schulman (Thu, 06 Apr 2017 21:22:38 -0400)
>> My regular shell is fish. To make local terminals run fish instead
>> of bash when I start them, I set
>> SHELL=/usr/bin/fish
>> in my desktop environment. This works fine: I start MinTTY, and
>> fish starts.
>> But when I log into that same host by sshd, bash starts, not fish
>> (since sshd doesn't have access to my desktop environment
>> variables). How can I configure either my ssh client or the ssh
>> server to start fish instead of bash? 
> I use db_shell in /etc/nsswitch.conf.

How do you use db_shell, what do you set it to in /etc/nsswitch.conf, 
do you set anything else, and how does this change the shell under ssh? 
Please provide details and why you think this will work for the OP's issue.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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