Setting Default Execution Path for ssh Logins using Bash

Lowell Gilbert freebsd-questions-local at
Wed Aug 20 11:12:30 PDT 2003

Martin McCormick <martin at> writes:

> 	Where is the default execution path set for ssh logins who get
> a bash shell?

Originally from login capabilities; it can be modified in a number of
other places as described in the bash(1) manual.

> 	I thought I knew the answer until I tried to change it on a
> system that is giving everyone a path that needs /usr/local/etc in it.

I *think* you're saying that the users don't have that directory in
their path, but you'd like them to.  

> 	The handbook mentions login.conf which I did modify with no
> effect.

You ran cap_mkdb(1)?

> 	I think, in the past, I modified the .bash_profile or maybe
> the skeleton bash profile, but there should be a way to give all new
> logins and new accounts the correct path but I can't seem to find
> anything in the handbook that looks promising or anything that, when
> modified changes the path.

That depends on whether the shells are "login" shells or not.  I think
you can set up ssh to handle it either way.  If they are, then you can
put configuration in /etc/profile (I think that's the file, anyway).  
But the login database should be the way to do it.

Good luck.

More information about the freebsd-questions mailing list