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

Re: problem connecting to OS X hosts using svn+ssh

From: Tom Mornini <tmornini_at_infomania.com>
Date: 2005-02-25 07:40:15 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not exactly arguing here, but on my OS X Server system,
.bash_profile must be in use, or I'd be having the same
problems.

How would sshd execute commands without a shell?

How can sshd launch a shell without the shell initializing?

ccm:~ tmornini$ sudo find / -name svn -ls
208574 0 drwxr-xr-x 14 svn staff 476 Nov 14 22:37
/Users/svn
209607 640 -rwxr-xr-x 1 root wheel 327460 Oct 22 21:17
/usr/local/bin/svn

ccm:~ tmornini$ cat /etc/bashrc | grep local
ccm:~ tmornini$ cat /etc/csh.cshrc | grep local
ccm:~ tmornini$ cat /etc/csh.login | grep local

ccm:~ tmornini$ cat .bash_profile | grep local
export PATH=/usr/local/bin:/usr/local/pgsql/bin:$PATH

On Feb 24, 2005, at 10:20 PM, Dave Camp wrote:

> On Feb 24, 2005, at 12:56 PM, Zachary Pincus wrote:
>
>> It's possible that when sshd on the remote OS X machine tries to run
>> svnserve on your behalf, it can't find the executable. Perhaps it's
>> in a nonstandard location? (see this email to the svn list:
>> http://svn.haxx.se/users/archive-2004-10/1027.shtml )
>>
>> That said, sshd should be executing svnserve within a shell that
>> should have access to your PATH variables -- right? So if you can use
>> svnserve when logged in via ssh, sshd should be able to run it too.
>
> No. sshd does not run the users ~/.bash* or ~/.tcsh* files when
> executing a remote command. Those files are only run if the user is
> logging in and starting an interactive shell. This has come up many
> times on the list... it seems to bite many Mac users (myself
> included).
>
> Depending on what your default shell is, you need to modify (or add)
> the PATH variable in the following files (taken from an Xserve at
> work):
>
> /etc/bashrc:export PATH=$PATH:/usr/local/bin
> /etc/csh.cshrc: setenv PATH "$PATH"":/usr/local/bin"
> /etc/csh.login:setenv PATH
> "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"

- --
- -- Tom Mornini
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCHshPzaKkuvKwKvcRAhAQAJ9z9XgqxsaeCesL/i4NiLrvYruZNwCfWsdk
xvjTmJROdMt5+RmtDPLO7Bg=
=IDVf
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 25 07:42:30 2005

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