public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unable to start Cygwin64 terminal after password change
@ 2021-07-31 21:09 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2021-07-31 21:46 ` Brian Inglis
  2021-08-02  8:06 ` Corinna Vinschen
  0 siblings, 2 replies; 29+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2021-07-31 21:09 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi all,

I seem to be unable to start "Cygwin64 Terminal" (using the standard icon placed on the desktop when Cygwin gets installed)
after I had to change my password (at work).  My account did not change.  What I see is that the terminal window pops up
momentarily with a text "This account is currently not available", and then closes right away.  I'm using my work PC
perfectly fine, and my new password works just as well (using it every time to log in the system), only the Cygwin terminal
stopped working after the change.  I "own" the Cygwin installation on my work PC (it's installed by me from under my
username).

Even rebooting the PC did not help to clear this up.

Weirdly enough, I can start bash from cmd.exe, but then it shows my username numerically:

C:\WINDOWS\system32>c:\cygwin64\bin\bash.exe

NCBI_NT+User(1606)@NCBIPC9135 /cygdrive/c/WINDOWS/system32
$ uname -a
CYGWIN_NT-10.0 NCBIPC9135 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin

Any suggestions?

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 29+ messages in thread
* RE: Unable to start Cygwin64 terminal after password change
@ 2021-08-01 16:57 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2021-08-01 17:23 ` René Berber
  0 siblings, 1 reply; 29+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2021-08-01 16:57 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> $ head /proc/version

It seems to be not much different from the 'uname -a' output I showed earlier, but here it goes:

$ head /proc/version
CYGWIN_NT-10.0-18363 version 3.2.0-340.x86_64 (corinna@calimero) (gcc version 9.3.0 20200312 (Fedora Cygwin 9.3.0-1) (GCC) ) 2021-03-29 08:42 UTC

> getent passwd $USER

NCBI_NT+User(1606)@NCBIPC9135 /cygdrive/c/WINDOWS/system32
$ getent passwd lavr
lavr:*:1050182:1049089:U-NCBI_NT\lavr,S-1-5-21-2137354491-1741569864-122644288-1606:/home/lavr:/bin/bash

There's no stray /etc/passwd that might have gotten in the way, either:

$ cat /etc/passwd
cat: /etc/passwd: No such file or directory

BTW, $USER is not defined in the bash environment (not sure if it should be)

> net user $USER

$ net user lavr
The user name could not be found.

I don't have local users on this PC except for two maintenance accounts ('net user' shows them,
but they are not mine, and they are for our systems team, who administrates the machine).

My account is a domain account here.  And everything worked before I had to change my password.

TIA,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 29+ messages in thread
* RE: Unable to start Cygwin64 terminal after password change
@ 2021-08-01 19:28 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  0 siblings, 0 replies; 29+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2021-08-01 19:28 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> Unless of course you execute bash with -noprofile.

The only way I can start bash now, is from cmd.exe, since terminal (mintty) is not working for me,
as I explained in my first message:

C:\WINDOWS\system32>c:\cygwin64\bin\bash

NCBI_NT+User(1606)@NCBIPC9135 /cygdrive/c/WINDOWS/system32
$ id -un
NCBI_NT+User(1606)

I suppose it should have printed something like "NCBI_NT+lavr", but I truly don't remember what it
exactly was it showing before.  Certainly, though, no numeric part.

I used my real and proper username instead of $USER, in all the commands that I was asked to run and show the output.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 29+ messages in thread
* RE: Unable to start Cygwin64 terminal after password change
@ 2021-08-01 19:53 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2021-08-02 14:59 ` Andrey Repin
  0 siblings, 1 reply; 29+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2021-08-01 19:53 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

More info:

Running "cygcheck -rvs" from under bash (that I could only start from cmd.exe as shown earlier)
does not seem to show anything unusual (I have only single install of Cygwin, there's no conflict
of any kind, and all the packages check out Okay).

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

PWD = '/cygdrive/c/WINDOWS/system32'
HOME = '/'
CYGWIN = 'nodosfilewarning '
...
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\Cygwin64'
HKEY_CURRENT_USER\Software\Cygwin\setup
  (default) = 'C:\Cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\Cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: e022582115c10879 Path: C:\Cygwin64
  User:   Key: e022582115c10879 Path: C:\Cygwin64

c:  hd  NTFS    486939Mb  47% CP CS UN PA FC    QU  Local Disk
d:  cd             N/A    N/A
s:  net NTFS   2789212Mb  79% CP CS UN PA           [redacted]
u:  net NTFS     20480Mb  82% CP CS UN PA           lavr
x:  net NTFS   2789212Mb  79% CP CS UN PA           [redacted]
y:  net NTFS    116779Mb  60% CP CS UN PA       QU  lavr
z:  net NTFS    116779Mb  60% CP CS UN PA       QU  home

C:\cygwin64      /          system  binary,auto
C:\cygwin64\bin  /usr/bin   system  binary,auto
C:\cygwin64\lib  /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

The only thing in that output that still does not seem right is this section
(which I can't show in its entirety, so I am redacting it):

Output from C:\cygwin64\bin\id.exe
UID: 1050182(NCBI_NT+User(1606)
GID: 1050182 groups=1050182,1049089(NCBI_NT+Group(513)
mote Desktop Users)
555(Remote Desktop Users)
545(Users)
...

Note that my username is still numeric and the second line shows some incomplete
group name that has been cut off in the middle ("mote Desktop Users")...
All other (about 20) groups that follow [...] have their numeric and textual
information correct, without any issues...

I vaguely remember having the same issue some time ago (but then my work PC was frequently bugchecking
because of a faulty memory module), and I did not tie any recent password change (if there was any at all)
with my unability to run Cygwin terminal...  That time I had to clean my registry settings pertaining
to Cygwin and then I got the terminal working back (still have a history of doing so in the support
ticket created back than).  I haven't done so just yet.  Maybe some other thing is also in the play here,
and I will gladly provide any necessary information while it persistently and reproducibly not working,
to have it fixed (rather than crudely worked around).

Thanks for looking into this.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2021-08-04 10:05 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 21:09 Unable to start Cygwin64 terminal after password change Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-07-31 21:46 ` Brian Inglis
2021-08-02  8:06 ` Corinna Vinschen
2021-08-02 15:12   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 16:30     ` Corinna Vinschen
2021-08-02 16:49       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 18:31         ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 20:58           ` Brian Inglis
2021-08-02 21:38             ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-03  0:38               ` Brian Inglis
2021-08-03  1:47                 ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-03 15:23                   ` Brian Inglis
2021-08-03 15:50                     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-03 17:24                       ` Brian Inglis
2021-08-03 18:12                         ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-03 18:20                           ` john doe
2021-08-04 10:03                         ` Andrey Repin
2021-08-03 11:24           ` Corinna Vinschen
2021-08-03 15:07             ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 15:16   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-01 16:57 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-01 17:23 ` René Berber
2021-08-01 19:28 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-01 19:53 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 14:59 ` Andrey Repin
2021-08-02 15:14   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 15:20     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2021-08-02 21:21       ` Andrey Repin
2021-08-02 21:39         ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).