X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 772A138582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1677857723; bh=0YNamafbqddtIAfMO0cYSsdfnmgspTkD+0Kcfo/Yn6k=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Im9sXgMbeyXv/ZJA5uDAPv6+KAdSpFA24gzJMjaFJuWP6Nj7lZ/ff0kUpppvcTpFZ RoFOIVQtfOxRjd/vYR3ltAaTefOoGBm/ZOBMINCSjm8PNhea7xzqe9cP6iWjinJdsV 1qymwSU3r5ZjoD2vSPnmZjM62K4QmVxnGWMxM4W0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C60A3858C83 X-Yandex-Fwd: 1 Date: Fri, 3 Mar 2023 18:31:08 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1901530338.20230303183108@yandex.ru> To: Kirill Frolov , cygwin AT cygwin DOT com Subject: Re: Nano fails to open file "~/.bashrc". In-Reply-To: <9abd4f0c-3c51-1626-59d7-f6b65891c99d@gmail.com> References: <0de2dd08-f532-0c21-3685-5fc7e86ef8ee AT gmail DOT com> <165153627 DOT 20230303154721 AT yandex DOT ru> <9abd4f0c-3c51-1626-59d7-f6b65891c99d AT gmail DOT com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 323FZlvv021183 Greetings, Kirill Frolov! Please avoid top-posting in this list. > On 03.03.2023 15:47, Andrey Repin wrote: >> Greetings, Kirill Frolov! >> >>> When i run nano ~/.bashrc nano opens with   [ Directory '/home/frolo' does not exist ] error. >> Do you run it from bash prompt or from CMD prompt? >> >>> The file opens with cat ~/.bashrc >> Can you please show us the output of >> >> getent passwd "$USER"; mount; cat /etc/nsswitch.conf >> > I run it with F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico - Thanks. TBH, I'm baffled. Your setup looks like standard unaltered one. Diagnostics seems clear, but the last bit remains. What the `which nano` says? > $ getent passwd "$USER"; mount; cat /etc/nsswitch.conf > frolo:*:197609:197121:U-DESKTOP-P57624Q\frolo,S-1-5-21-3636099827-1216969241-2011884586-1001:/home/frolo:/bin/bash > F:/cygwin64/bin on /usr/bin type ntfs (binary,auto) > F:/cygwin64/lib on /usr/lib type ntfs (binary,auto) > F:/cygwin64 on / type ntfs (binary,auto) > C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) > D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) > E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto) > F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) > # /etc/nsswitch.conf > # > #    This file is read once by the first process in a Cygwin process tree. > #    To pick up changes, restart all Cygwin processes.  For a description > #    see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch > # > # Defaults: > # passwd:   files db > # group:    files db > # db_enum:  cache builtin > # db_home:  /home/%U > # db_shell: /bin/bash > # db_gecos: -- With best regards, Andrey Repin Friday, March 3, 2023 18:26:32 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple