Re: [gentoo-user] ssh login, passing local user environment

2020-10-25 Thread J. Roeleveld
On Sunday, October 25, 2020 10:56:24 AM CET John Covici wrote:
> On Sun, 25 Oct 2020 05:04:38 -0400,
> 
> J. Roeleveld wrote:
> > On Saturday, October 24, 2020 11:05:45 PM CET the...@sys-concept.com 
wrote:
> > > If I login from the command "ifconfig" now works from command line at
> > > the terminal but if I login over "ssh", "ifconfig" is not working only
> > > "/bin/ifconfig"
> > > 
> > > I was thinking it is the option in sshd_config: PermitUserEnvironment
> > > but enabling it didn't help.
> > 
> > Which USE-flags did you use for ssh?
> > 
> > # eix net-misc/openssh
> > 
> > should provide this.
> > 
> > Also, do you have the following in your sshd_config:
> > 
> > " UsePAM yes "
> > 
> > This is normally used to configure the environment as well.
> 
> The simplest thing is to change your path environment variable in your
> .bashsrc so its always the same, no matter what the user is, that
> would solve your problem.

Which is also a maintenance nightmare if you end up with packages installed in 
different locations or when paths change due to new versions.

Never mind all the other environment variables that are defined in /etc/
profile.env.

--
Joost






Re: [gentoo-user] ssh login, passing local user environment

2020-10-25 Thread John Covici


On Sun, 25 Oct 2020 05:04:38 -0400,
J. Roeleveld wrote:
> 
> On Saturday, October 24, 2020 11:05:45 PM CET the...@sys-concept.com wrote:
> > If I login from the command "ifconfig" now works from command line at
> > the terminal but if I login over "ssh", "ifconfig" is not working only
> > "/bin/ifconfig"
> > 
> > I was thinking it is the option in sshd_config: PermitUserEnvironment
> > but enabling it didn't help.
> 
> Which USE-flags did you use for ssh?
> 
> # eix net-misc/openssh
> 
> should provide this.
> 
> Also, do you have the following in your sshd_config:
> 
> " UsePAM yes "
> 
> This is normally used to configure the environment as well.

The simplest thing is to change your path environment variable in your
.bashsrc so its always the same, no matter what the user is, that
would solve your problem.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



Re: [gentoo-user] ssh login, passing local user environment

2020-10-25 Thread J. Roeleveld
On Saturday, October 24, 2020 11:05:45 PM CET the...@sys-concept.com wrote:
> If I login from the command "ifconfig" now works from command line at
> the terminal but if I login over "ssh", "ifconfig" is not working only
> "/bin/ifconfig"
> 
> I was thinking it is the option in sshd_config: PermitUserEnvironment
> but enabling it didn't help.

Which USE-flags did you use for ssh?

# eix net-misc/openssh

should provide this.

Also, do you have the following in your sshd_config:

" UsePAM yes "

This is normally used to configure the environment as well.

--
Joost





[gentoo-user] ssh login, passing local user environment

2020-10-24 Thread thelma
If I login from the command "ifconfig" now works from command line at
the terminal but if I login over "ssh", "ifconfig" is not working only
"/bin/ifconfig"

I was thinking it is the option in sshd_config: PermitUserEnvironment
but enabling it didn't help.

-- 
Thelma