[PATCH v4 2/3] Respect `db_home` setting even for SYSTEM/Microsoft accounts

Johannes Schindelin Johannes.Schindelin@gmx.de
Mon Apr 3 06:36:59 GMT 2023


Hi Corinna,

On Tue, 28 Mar 2023, Corinna Vinschen wrote:

> On Mar 28 10:17, Johannes Schindelin wrote:
> > We should not blindly set the home directory of the SYSTEM account (or
> > of Microsoft accounts) to /home/SYSTEM, especially not when that value
>                                   ^^^^^^
> That should probably better be <username>, no?

No, this is the actual name of the home directory when you start
`Cygwin.bat` using the SYSTEM account. To reproduce, I ran `PsExec64.exe
-s -i cmd` and then `C:\Cygwin64\Cygwin.bat` in that command prompt (after
verifying that `whoami` prints `nt authority\system`).

The Bash prompt then says `SYSTEM@<hostname>`, and `echo $HOME` reports
`/home/SYSTEM`.

Ciao,
Johannes


More information about the Cygwin-patches mailing list