delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/12/20:06:33

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Windows whoami returns hostname\sshd_server after ssh auth key login
Date: Tue, 12 Sep 2006 17:06:16 -0700
Message-ID: <A6A2706C1F47D24F92D56A457CDE62E50463369B@rsana-ex-sm1.NA.RSA.NET>
From: "DeGraff, Adam" <adegraff AT rsasecurity DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k8D06T2K007735

I installed the snapshot with Corinna's fix and now I get an entirely
different user (system):

Administrator AT am-inst-das-win ~
$ ssh Administrator AT am-inst-das-win "C:/Windows/system32/whoami"
nt authority\system

Adding Administrator to the Administrators group in /etc/group does not
change any behavior either.  My /etc/group file:

Administrator AT am-inst-das-win ~
$ cat /etc/group
root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1969745333-2228228407-1045754391-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Performance Log Users:S-1-5-32-559:559:
Performance Monitor Users:S-1-5-32-558:558:
Power Users:S-1-5-32-547:547:
Print Operators:S-1-5-32-550:550:
Remote Desktop Users:S-1-5-32-555:555:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
HelpServicesGroup:S-1-5-21-1969745333-2228228407-1045754391-1000:1000:
TelnetClients:S-1-5-21-1969745333-2228228407-1045754391-1002:1002:

Administrator AT am-inst-das-win ~
$ cygcheck.exe -s

Cygwin Configuration Diagnostics
Current System Time: Tue Sep 12 17:01:33 2006

Windows 2003 Enterprise Server Ver 5.2 Build 3790 Service Pack 1

Running in Terminal Service session

Path:   c:\opt\myjdk\bin
        C:\cygwin\CT\library\apache-maven\1.0.2\bin
        C:\cygwin\CT\library\activetcl\8.4.11\linux-x86\bin
        C:\cygwin\bin
        C:\cygwin\bin
        C:\cygwin\usr\local\bin\
        C:\cygwin\usr\sbin
        C:\cygwin\usr\local\bin
        C:\cygwin\bin
        C:\cygwin\bin
        C:\cygwin\usr\X11R6\bin
        c:\opt\rsa\AM-220~1\db\bin
        c:\opt\rsa\AM-219~1\db\bin
        c:\opt\rsa\AM-218~1\db\bin
        c:\opt\rsa\am-210061\db\bin
        c:\WINDOWS\system32
        c:\WINDOWS
        c:\WINDOWS\System32\Wbem
        c:\PROGRA~1\ULTRAE~1

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

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

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

USER = 'Administrator'
PWD = '/home/Administrator'
HOME = '/home/Administrator'
MAKE_MODE = 'unix'

Use '-r' to scan registry

a:  fd             N/A    N/A
c:  hd  NTFS     20473Mb  58% CP CS UN PA FC
d:  cd             N/A    N/A

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

   91k 2005/11/11 C:\cygwin\bin\cygapr-0-0.dll
  103k 2006/06/05 C:\cygwin\bin\cygapr-1-0.dll
   67k 2005/11/11 C:\cygwin\bin\cygaprutil-0-0.dll
   70k 2006/06/05 C:\cygwin\bin\cygaprutil-1-0.dll
   56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll
    7k 2005/11/20 C:\cygwin\bin\cygcharset-1.dll
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
 1108k 2006/06/01 C:\cygwin\bin\cygcrypto-0.9.7.dll
 1050k 2006/06/01 C:\cygwin\bin\cygcrypto-0.9.8.dll
  194k 2006/06/12 C:\cygwin\bin\cygcurl-3.dll
  895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll
  965k 2005/05/14 C:\cygwin\bin\cygdb-4.3.dll
 1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll
 1240k 2005/05/14 C:\cygwin\bin\cygdb_cxx-4.3.dll
  174k 2004/10/14 C:\cygwin\bin\cygexpat-0.dll
  129k 2004/03/11 C:\cygwin\bin\cygfontconfig-1.dll
   40k 2006/03/24 C:\cygwin\bin\cygform-8.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll
  375k 2005/09/06 C:\cygwin\bin\cygfreetype-6.dll
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll
  515k 2006/06/06 C:\cygwin\bin\cygglib-2.0-0.dll
   10k 2006/06/06 C:\cygwin\bin\cyggmodule-2.0-0.dll
  222k 2006/06/06 C:\cygwin\bin\cyggobject-2.0-0.dll
   14k 2006/06/06 C:\cygwin\bin\cyggthread-2.0-0.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
   24k 2006/03/25 C:\cygwin\bin\cyghistory6.dll
  335k 2006/06/06 C:\cygwin\bin\cyghttpd2core.dll
  947k 2005/11/20 C:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   12k 2003/02/17 C:\cygwin\bin\cygioperm-0.dll
  132k 2003/08/11 C:\cygwin\bin\cygjpeg-62.dll
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll
   48k 2005/11/19 C:\cygwin\bin\cygmagic-1.dll
   21k 2006/03/24 C:\cygwin\bin\cygmenu-8.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
   21k 2004/10/22 C:\cygwin\bin\cygminires.dll
   67k 2006/03/24 C:\cygwin\bin\cygncurses++-8.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  227k 2006/03/24 C:\cygwin\bin\cygncurses-8.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
   12k 2006/03/24 C:\cygwin\bin\cygpanel-8.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
  109k 2006/02/10 C:\cygwin\bin\cygpcre-0.dll
  299k 2006/02/10 C:\cygwin\bin\cygpcrecpp-0.dll
    7k 2006/02/10 C:\cygwin\bin\cygpcreposix-0.dll
 1249k 2005/12/30 C:\cygwin\bin\cygperl5_8.dll
  230k 2005/07/11 C:\cygwin\bin\cygpng12.dll
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
  152k 2006/03/25 C:\cygwin\bin\cygreadline6.dll
  230k 2006/06/01 C:\cygwin\bin\cygssl-0.9.7.dll
  214k 2006/06/01 C:\cygwin\bin\cygssl-0.9.8.dll
  304k 2005/07/10 C:\cygwin\bin\cygtiff-5.dll
  281k 2005/07/10 C:\cygwin\bin\cygtiffxx-5.dll
   27k 2005/10/23 C:\cygwin\bin\cygungif-4.dll
 1831k 2006/07/30 C:\cygwin\bin\cygwin1-old.dll
   65k 2005/08/23 C:\cygwin\bin\cygz.dll
 1967k 2006/09/07 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.7.0
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 160
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Thu Sep 7 16:45:33 EDT 2006
        Snapshot date: 20060907-16:43:40
        Shared id: cygwin1S4

   20k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygfontenc-1.dll
   34k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygFS-6.dll
  357k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygGL-1.dll
  441k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll
   74k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygICE-6.dll
    8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll
 1662k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll
   28k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygSM-6.dll
  884k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygX11-6.dll
    8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXau-6.dll
  250k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-6.dll
  354k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll
  360k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXaw-8.dll
    7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXcomposite-1.dll
   30k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll
    8k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXdamage-1.dll
   16k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXdmcp-6.dll
    7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXevie-1.dll
   50k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXext-6.dll
   15k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXfixes-3.dll
   56k 2004/03/11 C:\cygwin\usr\X11R6\bin\cygXft-1.dll
   63k 2004/03/23 C:\cygwin\usr\X11R6\bin\cygXft-2.dll
   26k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXi-6.dll
  121k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxkbfile-1.dll
   11k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxkbui-1.dll
   74k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll
   10k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll
   26k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXp-6.dll
   54k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll
   10k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll
   30k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll
    7k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXRes-1.dll
   38k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxrx-6.dll
   24k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygxrxnest-6.dll
  283k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXt-6.dll
   27k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll
   17k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll

Service             : cron
Display name        : Cron daemon
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -D

Service             : init
Current State       : Running
Controls Accepted   : Stop
Command             : /sbin/init -i

Service             : sshd
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D


Cygwin Package Information
Package              Version
_update-info-dir     00426-1
alternatives         1.3.20a-2
apache               1.3.33-2
apache2              2.2.2-1
ash                  20040127-3
autossh              1.4a-1
base-files           3.7-1
base-passwd          2.2-1
bash                 3.1-6
bash-completion      20060301-1
bc                   1.06-2
binutils             20060817-1
bzip2                1.0.3-1
chere                0.6-4
coreutils            5.97-1
cpio                 2.6-5
cron                 3.0.1-19
crypt                1.1-1
curl                 7.15.4-1
cygrunsrv            1.17-1
cygutils             1.3.0-1
cygwin               1.5.21-2
cygwin-doc           1.4-4
desktop-file-utils   0.10-1
diffutils            2.8.7-1
e2fsimage            0.2.0-2
e2fsprogs            1.35-3
ed                   0.2-1
editrights           1.01-1
email                2.5.0-1
expat                1.95.8-1
expect               20030128-1
file                 4.16-1
fileutils            4.1-3
findutils            4.3.0-2
fontconfig           2.2.2-1
freetype2            2.1.9-1
gawk                 3.1.5-4
gcc                  3.4.4-1
gcc-core             3.4.4-1
gcc-g++              3.4.4-1
gcc-mingw-core       20050522-1
gcc-mingw-g++        20050522-1
gdbm                 1.8.3-7
gettext              0.14.5-1
glib2                2.10.3-1
glib2-runtime        2.10.3-1
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-2
inetutils            1.3.2-35
initscripts          0.9-1
ioperm               0.4-1
jpeg                 6b-11
less                 381-1
libapr0              0.9.7-1
libapr1              1.2.7-1
libaprutil0          0.9.7-1
libaprutil1          1.2.7-1
libbz2_1             1.0.3-1
libcharset1          1.9.2-2
libcurl3             7.15.4-1
libdb4.2             4.2.52-1
libdb4.3             4.3.28-1
libfontconfig1       2.2.2-1
libfreetype26        2.1.9-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libiconv             1.9.2-2
libiconv2            1.9.2-2
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libjpeg62            6b-11
libjpeg6b            6b-8
libncurses-devel     5.5-2
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.5-2
libpcre              4.1-2
libpcre0             6.6-1
libpng               1.2.8-2
libpng12             1.2.8-2
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.1-5
libtiff-devel        3.7.3-1
libtiff5             3.7.3-1
libungif             4.1.4-1
libungif4            4.1.4-1
libXft               2.1.6-1
libXft1              1.0.0-1
libXft2              2.1.6-1
links                0.99pre14-1
login                1.9-7
lynx                 2.8.5-4
make                 3.81-1
man                  1.5p-1
mingw-runtime        3.10-1
minires              1.00-1
mktemp               1.5-3
more                 2.11o-3
ncurses              5.5-2
nfs-server           2.3-4
openssh              4.3p2-3
openssl              0.9.8b-1
openssl097           0.9.7j-1
pcre                 6.6-1
pcre-devel           6.6-1
pcre-doc             6.6-1
pdksh                5.2.14-3
perl                 5.8.7-5
ping                 1.0-1
procps               3.2.6-1
psmisc               21.5-3
readline             5.1-5
rsync                2.6.6-1
run                  1.1.10-1
sed                  4.1.5-2
setsid               0.0-4
sh-utils             2.0.15-5
sharutils            4.5.3-1
shutdown             1.7-1
ssmtp                2.60.9-3
stow                 1.3.3-1
sunrpc               4.0-3
sysvinit             2.84-4
tar                  1.15.91-1
tcltk                20060202-1
termcap              20050421-1
terminfo             5.5_20060323-1
texinfo              4.8-3
textutils            2.0.21-2
tiff                 3.7.3-1
time                 1.7-1
tzcode               2005r-2
unzip                5.50-5
util-linux           2.12r-2
vim                  7.0.076-1
w32api               3.7-1
wget                 1.10.2-1
which                1.7-1
whois                4.7.11-1
WindowMaker          0.90.0-2
X-start-menu-icons   1.0.4-1
X-startup-scripts    1.0.11-1
x2x                  1.30-2
xorg-x11-base        6.8.99.901-1
xorg-x11-bin         6.8.99.901-1
xorg-x11-bin-dlls    6.8.99.901-1
xorg-x11-bin-lndir   6.8.99.901-1
xorg-x11-etc         6.8.99.901-1
xorg-x11-f100        6.8.99.901-1
xorg-x11-fenc        6.8.99.901-1
xorg-x11-fnts        6.8.99.901-1
xorg-x11-fscl        6.8.99.901-1
xorg-x11-libs-data   6.8.99.901-1
xorg-x11-xwin        6.8.99.901-1
xterm                202-1
zip                  2.3-6
zlib                 1.2.3-1
Use -h to see help about each section

-----Original Message-----
From: Igor Peshansky [mailto:pechtcha AT cs DOT nyu DOT edu] 
>
> Am I correct in this assumption?  Is there a workaround?

<http://cygwin.com/ml/cygwin/2006-08/msg01084.html>.

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019