This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ssh confused about home directory?
On Tue, 19 Feb 2019 19:24:38, Boylan, Ross" wrote:
> [Answering my own question after better searching]
> Same question asked and answered in the thread starting https://cygwin.com/=
> ml/cygwin/2016-06/msg00400.html.
> The answer is to set db_home in nsswitch.conf.
>
> Comment: the current behavior strikes me as unfortunate and surprising.
Surprisng?
.. and you have read?
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-passwdinfo
where it reads:
So, what settings can we perform with /etc/nsswitch.conf? Let's start with
an example /etc/nsswitch.conf file set up to all default values:
# /etc/nsswitch.conf
passwd: files db
group: files db
db_enum: cache builtin
db_home: /home/%U <=========
db_shell: /bin/bash
db_gecos: <empty>
Perhaps you can infer this default from:
https://cygwin.com/
where it reads: Cygwin - Get this __Linux__ feeling ...
Henri
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple