Thanks for the reply. /etc/login.conf seems to be pointing to Russian. What would be the code for the US?Set in $HOME/.login_conf
or set system wide in /etc/login.confCode:me:\ :charset=UTF-8:\ :lang=C.UTF-8:
runCode:default:\ .... :umask=022:\ :charset=UTF-8:\ :lang=C.UTF-8:
cap_mkdb /etc/login.conf
afterwards. Replacelang
if necessary to your locale.
#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
:charset=UTF-8:\
:lang=ru_RU.UTF-8:\
:tc=default:
Why do you say it's pointing to russian? The default login class is/etc/login.conf seems to be pointing to Russian. What would be the code for the US?
default:\
. If your login class is not russian
then the appropriate place for US locale is under default:\
. It makes no sense to set US locale under login class russian
.#
# Russian Users Accounts. Setup proper environment variables.
#
#russian|Russian Users Accounts:\
# :charset=UTF-8:\
# :lang=ru_RU.UTF-8:\
# :tc=default:
#American Users Accounts.
[...]
:charset=UTF-8:\
:lang=en_US.UTF-8:\
# :umask=022:
:tc=default:
cap_mkdb /etc/login.conf
For this to work the login class needs a name like#American Users Accounts.
[...]
:charset=UTF-8:\
:lang=en_US.UTF-8:\
# :umask=022:
:tc=default:
default
or russian
, but you haven't specified a name for the class and the class must be assigned to the user. See /etc/master.passwd, the fifth field after user id and group id specifies the login class, it's empty if it's default (: :). Don't add unnecessary entries. Please delete those.charset
and lang
at the end of the default:\
login classdefault:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=BLOCKSIZE=K:\
:mail=/var/mail/$:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
:stacksize=unlimited:\
:memorylocked=64K:\
:memoryuse=unlimited:\
:filesize=unlimited:\
:coredumpsize=unlimited:\
:openfiles=unlimited:\
:maxproc=unlimited:\
:sbsize=unlimited:\
:vmemoryuse=unlimited:\
:swapuse=unlimited:\
:pseudoterminals=unlimited:\
:kqueues=unlimited:\
:umtxp=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:\
:charset=UTF-8:\
:lang=en_US.UTF-8:
cap_mkdb /etc/login.conf
, log out log in the user.default:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=BLOCKSIZE=K:\
:mail=/var/mail/$:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
:stacksize=unlimited:\
:memorylocked=64K:\
:memoryuse=unlimited:\
:filesize=unlimited:\
:coredumpsize=unlimited:\
:openfiles=unlimited:\
:maxproc=unlimited:\
:sbsize=unlimited:\
:vmemoryuse=unlimited:\
:swapuse=unlimited:\
:pseudoterminals=unlimited:\
:kqueues=unlimited:\
:umtxp=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:
:charset=UTF-8:\
:lang=en_US.UTF-8:
#
# A collection of common class names - forward them all to 'default'
# (login would normally do this anyway, but having a class name
# here suppresses the diagnostic)
#
standard:\
:tc=default:
xuser:\
:tc=default:
staff:\
:tc=default:
daemon:\
:mail@:\
:memorylocked=128M:\
:tc=default:
news:\
:tc=default:
dialer:\
:tc=default:
#
# Root can always login
#
# N.B. login_getpwclass(3) will use this entry for the root account,
# in preference to 'default'.
root:\
:ignorenologin:\
:memorylocked=unlimited:\
:tc=default:
#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
:charset=UTF-8:\
:lang=ru_RU.UTF-8:\
:tc=default:
.....
:priority=0:\
:ignoretime@:\
:umask=022:
:charset=UTF-8:\
:lang=en_US.UTF-8:
:umask=022:
is missing a backslash ( \ ) at the line end. All lines must have a backslash at the line end, except the last one. After editing run cap_mkdb /etc/login.conf
again. If the user using curl is logged in, log out, log in again.