delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/28/19:07:37

From: lka AT physic DOT ut DOT ee (Andres Heinloo)
Subject: Re: bash problems with sshd
28 Nov 1998 19:07:37 -0800 :
Message-ID: <Pine.GSO.3.95q.981128184734.19860A-100000.cygnus.gnu-win32@rubiin.physic.ut.ee>
References: <19981124153019 DOT 6018 DOT qmail AT findmail DOT com>
Mime-Version: 1.0
To: Dirk Hufnagel <hufnagel AT mps DOT ohio-state DOT edu>
Cc: gnu-win32 AT cygnus DOT com

On 24 Nov 1998, Dirk Hufnagel wrote:

> I am using sshd 1.2.26 with B20 and the 
> coolview patches.
> 
> Now I have the problem that .bashrc doesn't get 
> loaded when I login with "slogin NT-host".

Sshd executes bash as a login shell. Bash manpage says:


       Login shells:
         On login (subject to the -noprofile option):
               if /etc/profile exists, source it.

               if ~/.bash_profile exists, source it,
                 else if ~/.bash_login exists, source it,
                   else if ~/.profile exists, source it.

         On exit:
               if ~/.bash_logout exists, source it.

       Non-login interactive shells:
         On startup (subject to the -norc and -rcfile options):
               if ~/.bashrc exists, source it.


I am using the '-login' flag to bash in cygnus.bat. Then I have system 
wide settings in /etc/profile and my personal ones in ~/.profile. It also
works with sshd.


Andres.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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