Dropbear ignores some env variables

Matt Johnston matt at ucc.asn.au
Wed Aug 24 19:50:33 WST 2011


On Tue, Aug 23, 2011 at 11:26:03AM +0800, Amer wrote:
> Hello. I just started using dropbear (compiled from latest source)
> only recently so pardon me if this has been brought up before
> 
> I noticed that on some distro, debian based ones mainly such as
> Ubuntu,  dropbear doesn't read and set environment variables like PATH
> and locales. When I access my server via dropbear, I found out that my
> locales weren't correctly set. Same with PATH. This however doesn't
> happen if I log in through openssh.
> 
> Is this a known issue?

I think those are set for OpenSSH (and other login modes) by
/etc/pam.d/login.  Currently Dropbear doesn't have much PAM
support (just enough for User:/Password: challenge response
authentication) since the API isn't very pleasant.

https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/232064
looks like this problem.

Cheers,
Matt


More information about the Dropbear mailing list