SSH Login, using 'tester' account (in Adminstrators group) to the Cygwin
sshd server fails from a client machine which has ~/.ssh/id_rsa keys
available.

Login from the same client, without the id_rsa keys is successful. SSH
locally (on cygwin box) is also successful.

Comparison of the sshd logs (debugging enabled) of a good vs failure login
shows that when id_rsa is enabled on the client, the following in the
failure case:  

debug1: temporarily_use_uid: 1000/513 (e=18/544)
seteuid 1000: Operation not permitted

This seem to be related to a permission related problem, but cygcheck_output
though shows the 'tester' user is member of Administrators group.

What I am I missing?

Thanks,

Novice Cygwin user

Cygwin Configuration Diagnostics
Current System Time: Mon Jan 05 04:34:58 2015

Windows 7 Professional Ver 6.1 Build 7601 Service Pack 1

Path:   C:\Windows\system32
        C:\Windows
        C:\Windows\System32\Wbem
        C:\Windows\System32\WindowsPowerShell\v1.0\

Output from C:\cygwin\bin\id.exe
UID: 1000(tester)   GID: 513(None)
513(None)           0(root)             544(Administrators) 545(Users)

SysDir: C:\Windows\system32
WinDir: C:\Windows

Here's some environment variables that may affect cygwin:
Path = 
'C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\'

Here's the rest of your environment variables:
ALLUSERSPROFILE = 'C:\ProgramData'
APPDATA = 'C:\Users\tester\AppData\Roaming'
CommonProgramFiles = 'C:\Program Files\Common Files'
COMPUTERNAME = 'TESTVM181'
ComSpec = 'C:\Windows\system32\cmd.exe'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Users\tester'
LOCALAPPDATA = 'C:\Users\tester\AppData\Local'
LOGONSERVER = '\\TESTVM181'
NUMBER_OF_PROCESSORS = '1'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 42 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '2a07'
ProgramData = 'C:\ProgramData'
ProgramFiles = 'C:\Program Files'
PROMPT = '$P$G'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC = 'C:\Users\Public'
SESSIONNAME = 'Console'
SystemDrive = 'C:'
SystemRoot = 'C:\Windows'
TEMP = 'C:\Users\tester\AppData\Local\Temp'
TMP = 'C:\Users\tester\AppData\Local\Temp'
USERDOMAIN = 'TESTVM181'
USERNAME = 'tester'
USERPROFILE = 'C:\Users\tester'
windir = 'C:\Windows'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'

Scanning registry for keys with 'Cygwin' in them...
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

Listing available drives...
Drv Type          Size   Used Flags              Name
a:  fd             N/A    N/A                    
c:  hd  NTFS     39897Mb  18% CP CS UN PA FC     WindowsPartition
d:  cd             N/A    N/A                    

fd = floppy,          hd = hard drive,       cd = CD-ROM
net= Network Share,   ram= RAM drive,        unk= Unknown
CP = Case Preserving, CS = Case Sensitive,   UN = Unicode
PA = Persistent ACLS, FC = File Compression, VC = Volume Compression

Mount entries: these map POSIX directories to your NT drives.
-NT-             -POSIX-    -Type-  -Flags-
C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Looking to see where common programs can be found, if at all...
Not Found: awk
Not Found: bash
Not Found: cat
Not Found: cp
Not Found: cpp (good!)
Not Found: crontab
Found: C:\Windows\system32\find.exe
Not Found: gcc
Not Found: gdb
Not Found: grep
Not Found: kill
Not Found: ld
Not Found: ls
Not Found: make
Not Found: mv
Not Found: patch
Not Found: perl
Not Found: rm
Not Found: sed
Not Found: ssh
Not Found: sh
Not Found: tar
Not Found: test
Not Found: vi
Not Found: vim

Looking for various Cygwin DLLs...  (-v gives version info)
Warning: cygwin1.dll not found on your path

Checking for any Cygwin services... 

Service             : sshd                
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem

Service             : sshd2               
Display name        : CYGWIN sshd_debug
Current State       : Stopped
Command             : /usr/sbin/sshd -D -d -d -d
stdin path          : /dev/null
stdout path         : /var/log/sshd2.log
stderr path         : /var/log/sshd2.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem


Cygwin Package Information
Last downloaded files to: D:\custom\cygwin-32
Last downloaded files from: 

Package              Version            Status
_autorebase          000730-1           OK
_update-info-dir     01319-1            OK
alternatives         1.3.30c-10         OK
base-cygwin          3.3-1              OK
base-files           4.2-3              OK
bash                 4.1.17-9           OK
bzip2                1.0.6-2            OK
ca-certificates      2.2-1              OK
coreutils            8.23-4             OK
crypt                1.2-1              OK
csih                 0.9.8-2            OK
curl                 7.39.0-1           OK
cygrunsrv            1.61-1             OK
cygutils             1.4.14-1           OK
cygwin               1.7.33-1           OK
dash                 0.5.8-3            OK
diffutils            3.3-2              OK
editrights           1.03-1             OK
file                 5.20-1             OK
findutils            4.5.12-1           OK
gawk                 4.1.1-1            OK
getent               2.18.90-4          OK
grep                 2.21-1             OK
groff                1.22.2-2           OK
gzip                 1.6-1              OK
hostname             3.13-1             OK
info                 5.2-3              OK
ipc-utils            1.0-1              OK
less                 444-1              OK
libargp              20110921-2         OK
libattr1             2.4.46-1           OK
libblkid1            2.25.2-1           OK
libbz2_1             1.0.6-2            OK
libcharset1          1.14-2             OK
libcom_err2          1.42.10-1          OK
libcurl4             7.39.0-1           OK
libdb4.8             4.8.30-1           OK
libedit0             20130712-1         OK
libexpat1            2.1.0-3            OK
libffi6              3.0.13-1           OK
libgcc1              4.8.3-4            OK
libgdbm4             1.8.3-20           OK
libgmp10             6.0.0a-1           OK
libgmp3              4.3.2-1            OK
libgnutls28          3.2.20-1           OK
libgssapi_krb5_2     1.12.2-1           OK
libhogweed2          2.7-1              OK
libiconv             1.14-2             OK
libiconv2            1.14-2             OK
libidn11             1.29-1             OK
libintl8             0.19.3-1           OK
libk5crypto3         1.12.2-1           OK
libkrb5_3            1.12.2-1           OK
libkrb5support0      1.12.2-1           OK
liblzma5             5.0.5-1            OK
libmetalink3         0.1.2-1            OK
libmpfr4             3.1.2-1            OK
libncurses10         5.9-20141213-1     OK
libncursesw10        5.9-20141213-1     OK
libnettle4           2.7-1              OK
libopenldap2_4_2     2.4.40-1           OK
libopenssl100        1.0.1j-2           OK
libp11-kit0          0.20.7-1           OK
libpcre1             8.36-1             OK
libpipeline1         1.3.0-3            OK
Empty package libpopt0
libpopt0             1.16-1             OK
libreadline7         6.1.2-3            OK
libsasl2_3           2.1.26-9           OK
libsigsegv2          2.10-1             OK
libsmartcols1        2.25.2-1           OK
libssh2_1            1.4.3-1            OK
libssp0              4.8.3-4            OK
libstdc++6           4.8.3-4            OK
libtasn1_6           4.2-1              OK
libuuid1             2.25.2-1           OK
login                1.11-1             OK
lynx                 2.8.7-1            OK
man-db               2.6.7-2            OK
mintty               1.1.3-1            OK
openssh              6.7p1-1            OK
openssl              1.0.1j-2           OK
p11-kit              0.20.7-1           OK
p11-kit-trust        0.20.7-1           OK
perl                 5.14.2-3           OK
popt                 1.16-1             OK
rebase               4.4.1-1            OK
run                  1.3.3-1            OK
screen               4.2.1-3            OK
sed                  4.2.2-3            OK
shutdown             1.10-1             OK
tar                  1.27.1-1           OK
terminfo             5.9-20141213-1     OK
tzcode               2014j-1            OK
unzip                6.0-11             OK
util-linux           2.25.2-1           OK
vim-minimal          7.4.560-1          OK
wget                 1.16.1-1           OK
which                2.20-2             OK
xz                   5.0.5-1            OK
zlib0                1.2.8-3            OK

Attachment: ssh_client_success.log
Description: Binary data

Attachment: sshd_failure.log
Description: Binary data

Attachment: sshd_success.log
Description: Binary data

Linux kali 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 
GNU/Linux

Attachment: ssh_client_failure.log
Description: Binary data

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to