1 |
On Sunday, October 25, 2020 10:56:24 AM CET John Covici wrote: |
2 |
> On Sun, 25 Oct 2020 05:04:38 -0400, |
3 |
> |
4 |
> J. Roeleveld wrote: |
5 |
> > On Saturday, October 24, 2020 11:05:45 PM CET thelma@×××××××××××.com |
6 |
wrote: |
7 |
> > > If I login from the command "ifconfig" now works from command line at |
8 |
> > > the terminal but if I login over "ssh", "ifconfig" is not working only |
9 |
> > > "/bin/ifconfig" |
10 |
> > > |
11 |
> > > I was thinking it is the option in sshd_config: PermitUserEnvironment |
12 |
> > > but enabling it didn't help. |
13 |
> > |
14 |
> > Which USE-flags did you use for ssh? |
15 |
> > |
16 |
> > # eix net-misc/openssh |
17 |
> > |
18 |
> > should provide this. |
19 |
> > |
20 |
> > Also, do you have the following in your sshd_config: |
21 |
> > |
22 |
> > " UsePAM yes " |
23 |
> > |
24 |
> > This is normally used to configure the environment as well. |
25 |
> |
26 |
> The simplest thing is to change your path environment variable in your |
27 |
> .bashsrc so its always the same, no matter what the user is, that |
28 |
> would solve your problem. |
29 |
|
30 |
Which is also a maintenance nightmare if you end up with packages installed in |
31 |
different locations or when paths change due to new versions. |
32 |
|
33 |
Never mind all the other environment variables that are defined in /etc/ |
34 |
profile.env. |
35 |
|
36 |
-- |
37 |
Joost |