I have two Win10_64 Pro PC's. One is behaving as expected and the other is not and I can't figure out how to resolve the issue on the problematic PC. Something else that might be noteworthy is that I just upgraded from cygwin version 1.7 to 3.0.7 and the problem was introduced after the upgrade (it worked fine before).
The problematic machine has an issue where the Administrator account is not a member of the Administrators group:
None Users INTERACTIVE CONSOLE LOGON Authenticated Users This Organization Local account CurrentSession LOCAL NTLM Authentication Medium Mandatory Level
However the working PC has a different groups output:
None Local account and member of Administrators group Administrators Users NETWORK Authenticated Users This Organization Local account CurrentSession NTLM Authentication High Mandatory Level
In both cases, I run the cygwin shell using a shortcut (not using "Run as Administrator"). Beyond not having the Administrators group, I see there are differences in High vs Medium Mandatory Level and I'd assume those are related to the problem as well.
I understand I can run the cygwin shell in an elevated prompt, but I'd like to login via SSH and have full Administrator privs, which is why I'd like to resolve this issue on the problematic machine. I just can't figure out how to do that.
I have verified the Administrator account on both PC's is a member of the Administrators group using Computer Management -> Users -> Administrator -> Member Of tab and verifying they match. I have also ran
mkpasswd -l > /etc/passwd and
mkgroup -l > /etc/group, rebooted and the problem still persists (in case something was missed during the cygwin upgrade). I see conflicting feedback on the Internet about this though; meaning, cygwin may not do much with these files, and/or ignore them.
I have the default /etc/nsswitch.conf as well on both PC's:
$ cat /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
# passwd: files db
# group: files db
# db_enum: cache builtin
# db_home: /home/%U
# db_shell: /bin/bash
# db_gecos: <empty>
My PC's are not part of an AD and we use strictly local logins (no association with Microsoft Live ID's).
Any help is greatly appreciated. Thank you very much!