Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Jeremie Le Hen
Hi Martijn, On Tue, Dec 11, 2012 at 6:44 PM, Martijn van Duren wrote: > > I'm a new to OpenBSD and BSD in general. > > On my new install I found that it is possible to set environment > variables via the login.conf file. When trying I found out that those > variables aren't honored if I log in vi

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Andres Perera
as a temporary workaround, you can do sudo -u $SAMEUSER -c - -i in, e.g., ~/.profile at the logged-in machine that way you don't duplicate env settings in ssh_config proper On Tue, Dec 11, 2012 at 6:14 AM, Martijn van Duren wrote: > Dear misc, > > I'm a new to OpenBSD and BSD in general. > > On

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Manolis Tzanidakis
On Tue (11/12/12), Otto Moerbeek wrote: > On Tue, Dec 11, 2012 at 05:39:08PM +0200, Manolis Tzanidakis wrote: > > Check 'AcceptEnv' and 'PermitUserEnvironment'in sshd_config(5). > > They're both set to off, by default. > > These options apply to different mechanisms than login.conf. Otto is right.

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Otto Moerbeek
On Tue, Dec 11, 2012 at 05:39:08PM +0200, Manolis Tzanidakis wrote: > Hey there > > On Tue (11/12/12), Martijn van Duren wrote: > > > > On my new install I found that it is possible to set environment > > variables via the login.conf file. When trying I found out that those > > variables aren't

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Manolis Tzanidakis
Hey there On Tue (11/12/12), Martijn van Duren wrote: > > On my new install I found that it is possible to set environment > variables via the login.conf file. When trying I found out that those > variables aren't honored if I log in via ssh. Setting the variables via > setusercontext in a test-a

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Martijn van Duren
I could set it in either /etc/profile (.profile would be even trickier since those can't be managed in a central manner), but I don't feel like scripting the user classes into those files. Not when there's a perfectly fine system implemented to do that for me. Yusof Khalid - FreeBSD / OpenBSD schr

Re: SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Yusof Khalid - FreeBSD / OpenBSD
Hi, Can those variable set in .profile ? I'm still new too but just a suggestion :) On Tue, Dec 11, 2012 at 6:44 PM, Martijn van Duren wrote: > Dear misc, > > I'm a new to OpenBSD and BSD in general. > > On my new install I found that it is possible to set environment > variables via the login.

SSHD doesn't honor login.conf's setenv

2012-12-11 Thread Martijn van Duren
Dear misc, I'm a new to OpenBSD and BSD in general. On my new install I found that it is possible to set environment variables via the login.conf file. When trying I found out that those variables aren't honored if I log in via ssh. Setting the variables via setusercontext in a test-application a