|
|||||||||||
|
Re: sftp Subsystem failure
From: Ben Lindstrom <mouring(at)etoh.eviladmin.org>
Date: Tue Nov 26 2002 - 11:52:03 EST The issue is that subsystems use your shell to run the command. As part of that it will run the non-interactive aspects of your startup scripts. [..]
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
So putting stuff like 'echo' statements in .bashrc is wrong behavior. [..earily in the manpage..]
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one
that exists and is readable. The --noprofile option may
be used when the shell is started to inhibit this behav
ior.
Those 3 are better options.
On Tue, 26 Nov 2002, Dennis Puk wrote: > We also noted this problem. We determined that it was due to the user
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT |
||||||||||
|
|||||||||||