Put Bazaar behind a password

John Whitley whitley at acm.org
Thu Jun 14 07:14:58 BST 2007


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

John Arbash Meinel wrote:
> I've never gotten SSH setup on Windows, though I've heard of people  
> succeeding.

This is pretty straightfoward with Cygwin's openssh package.  The  
package contains both the ssh client and server, but sshd must be  
manually enabled to avoid folks inadvertently installing and  
activating it along with the client.  If anyone needs specifics here,  
let me know and I'll dig them up.

> cd /usr/bin
> sudo ln -s /opt/local/bin/python2.4
> sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/ 
> 2.4/bin/bzr
>
> Yeah, I don't know why macports python installs things in such a  
> horrible path.

 From http://svn.python.org/projects/python/trunk/Mac/README: "The  
main reason is because you want to create GUI programs in Python. [...]"

> Also, the path when doing 'ssh localhost command' seems to be  
> restricted to:
>   /usr/bin:/bin:/usr/sbin:/sbin
>
> And I haven't figured out how to expand that at all for a single  
> user, without
> effecting the whole system.

See the PermitUserEnvironment and AcceptEnv settings in sshd_config 
(5).  In brief, these lines will allow setting of the PATH:

PermitUserEnvironment yes
AcceptEnv PATH

Then setup the desired PATH environment variable in ~/.ssh/ 
environment; see ssh(1).  Alternatively, an "environment=" option in  
authorized_keys can be used to set environment variables; see sshd(8)  
for those details.

- -- John


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGcN0Pr52Mexd941IRAl28AJ9Y0IKugLZXCiwL44VvGsbUk4oOygCgs+E2
CWXaxqO4FtjUcuSfeIOyb/c=
=gKif
-----END PGP SIGNATURE-----



More information about the bazaar mailing list