[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Logging repository accesses other than commits

From: David Brodbeck <brodbd_at_uw.edu>
Date: Mon, 4 Apr 2011 14:50:50 -0700

On Fri, Apr 1, 2011 at 8:46 PM, Nico Kadel-Garcia <nkadel_at_gmail.com> wrote:

> Modern versions of OpenSSH (such as the version 5 in RHEL 6 and
> contemporary Debian releases) does not read your .bashrc for non-login
> sessions. (This is actually standards compliant behavior, which
> OpenSSH version 4 did not follow.) This makes stashing an svnserve
> alias or $PATH setting unavailable going forward, and dependent on the
> typically shared 'svn' user to have this set in their path for
> svn+ssh.
>

I hit this same behavior working with a git install on a nonstandard path, a
while back.

One solution, at least on Linux, is to set "UsePAM Yes" in your sshd_config
and include "auth required pam_env.so" in the PAM settings for sshd. (This
is the default in many distributions.) You can then configure your custom
PATH in /etc/environment, and it *will* get read by non-interactive SSH
sessions. Note that /etc/environment is not a shell script; the only things
you can put in there are comments and simple variable assignments.

~/.ssh/environment is also an option. You have to turn on
PermitUserEnvironment in sshd_config for that to work.

-- 
David Brodbeck
System Administrator, Linguistics
University of Washington
Received on 2011-04-04 23:51:22 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.