From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id BC10C3858D33 for ; Fri, 3 Mar 2023 15:37:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC10C3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x236.google.com with SMTP id z42so2703643ljq.13 for ; Fri, 03 Mar 2023 07:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677857852; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HCmJfaWxJuvKh0yCp0XXoYqhXSHuTlqruey7X0irEM4=; b=f9QeUYiiSZfwJn5hWXp738/WYsyGcD5Tz66sfM2FauZxvmbQBwvMCjw1BvggCMtQY4 zziIlM48BGs8ZDQE/1089BdmzagOoRcbu4G/E71A2fbpHK+d87A/8asA96Nr4wubuDtg aE5KcUs1tZTeN69+9QQz3Yr2oMGOrJLERPFhrcRWZgsE41Y4URx1f3s/QEs0UYS/lF9P PY22/aCPVOv4WkpChatmL8gk0YGykbW0Nhq2u7D12eZN6bYT709PECtENaGhDECn06pE jaDfDMdtgQNmOxdMN6tWvmqR4N/4VO37ksud6IHL8ge8NNSOqXYIz6zJICS5MLDmb41Y RfLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677857852; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HCmJfaWxJuvKh0yCp0XXoYqhXSHuTlqruey7X0irEM4=; b=2gVek11veFtalB79ZmkO09g7lCvoWEhZp1FFMZHOrA2Vvz1qAuxsGIYbO/cgjCqLVc eBSQTLPMDUVDiEpPsYZfz/nxTUrXYxoEo67gwklOVR3TDUaYn4KgqOtU1Eh4iG8xmoOH 4RZlznc5Io4x3NlqDJdVKQkn0kpeyILrJTfwjrlyZDyQ7P6yk+a4iUffCMh8EpFPx1L5 AKDRoLi5t4u6YB59yIcCcFfrxoNY5Qev9DGS4/wziK33W1Mv67LIma+CJN4xWNrduKAS gZEFRLWOIAGTvubTqqbSTgVVUW7C6IoSdQavNjcdzeicvqpwHmLA7uW8xZfKNehXAqfX VOxA== X-Gm-Message-State: AO0yUKX0vriQnKi70dgM0tnFfJtIPM6OmqPEdFDNAJ2/pb6HdIp3jM5p j0dH1i4Xa3iPNBL0BaSLCQWaWwG0EVJ3XPz0bOA= X-Google-Smtp-Source: AK7set/BFNFCbwEMRItUV/XBQQ+w9D8Pt26nBAXhFXH5WhZ/zP0/A6S9RYiE4I7N9Cmun0rGybKEzg== X-Received: by 2002:a2e:9acc:0:b0:293:4fff:422d with SMTP id p12-20020a2e9acc000000b002934fff422dmr686038ljj.13.1677857851953; Fri, 03 Mar 2023 07:37:31 -0800 (PST) Received: from [192.168.1.2] ([95.165.148.251]) by smtp.gmail.com with ESMTPSA id f18-20020a2ea0d2000000b00295a21c7954sm357238ljm.50.2023.03.03.07.37.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Mar 2023 07:37:31 -0800 (PST) Message-ID: Date: Fri, 3 Mar 2023 18:37:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Nano fails to open file "~/.bashrc". Content-Language: ru To: cygwin@cygwin.com References: <0de2dd08-f532-0c21-3685-5fc7e86ef8ee@gmail.com> <165153627.20230303154721@yandex.ru> <9abd4f0c-3c51-1626-59d7-f6b65891c99d@gmail.com> <1901530338.20230303183108@yandex.ru> From: Kirill Frolov In-Reply-To: <1901530338.20230303183108@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 03.03.2023 18:31, Andrey Repin wrote: > 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: > $ which nano > /cygdrive/c/Program Files/Git/usr/bin/nano > >