- Package:
- src:dropbear
- Source:
- dropbear
- Submitter:
- Patrick Li
- Date:
- 2022-03-26 09:39:03 UTC
- Severity:
- normal
Dropbear does not set the locale of a remotely logged-in user to the system default in /etc/default/locale. Anyone who logged in remotely will have POSIX in their LANG and LC_* variables. There is a Ubuntu bug report explaining the same situation. https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/232064 There is a work around to this problem as described in http://wiki.debian.org/Locale, is to add : ${LANG:=YOUR_LOCALE}; export LANG to /etc/profile.
In openssh this is done by /etc/pam.d/sshd : session required pam_env.so readenv=1 envfile=/etc/default/locale but dropbear is: 1. not compiled with pam support (configure --enable-pam) 2. uses the pam name "sshd" in svr-authpam.c but does not install a /etc/pam.d/sshd file 3. does not include the necessary code to progagate the pam environment variables (see fetch_pam_environment and copy_environment in openssh auto-pam.c). It probably needs to call pam_open_session as well as pam_start.