Mail Archives: cygwin/2006/01/31/11:32:24
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <30705 DOT 1138722651 DOT 1 AT tigris DOT pounder DOT sol DOT net>
Last week I loaded cygwin 1.5.19 on a new Windows 2003 Server
(Standard Edition; service pack 1).
When I ssh'd to this host, I had insuffient rights to "cd"
to a network share. I was able to fix this, using Pierre A. Humblet's
approach, by running the 'id -G' command at the console, and then adding
my username to the "userlist" [4th field] in /etc/group for each group
listed by 'id -G'.
see: http://cygwin.com/ml/cygwin/2005-07/msg01287.html
After the fix: in ssh, you could cd to the network share, and write to
directories as expected. This fix worked fine, until..:
-- The Problem --
On Monday several compilers were loaded on this host (OurSrvr064);
because of this, 4 new local groups were created. So, I updated
/etc/group, by running 'mkgroup -ld', and subsequently re-doing
Pierre's approach- adding the username ("staffuser2", a domain user) into
the "userlist" [4th field] in /etc/group for each group listed by 'id -G'.
Unfortunately this failed. Also, the ssh session showed one
*additional* local group (gid 1008) for user staffuser2; additional w/r to
the (non ssh session) Terminal Services bash session 'id -G' output.
Also notable, was that whoami shown: "OurSrvr064\sshd_server", instead of
"staffuser2".
Please help me fix this again.
overview of problem, and attempt to fix: {
$ cygcheck -s |egrep '^Runni'
Running in Terminal Service session
$ uname -a
CYGWIN_NT-5.2 OurSrvr064 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
$ mkgroup -ld > /etc/group ;( mkpasswd -l; mkpasswd -d -u $(id -un) ) >/etc/passwd
$ grep $(id -un) /etc/passwd
staffuser2:unused_by_nt/2000/xp:15776:10513:staffuser2 tcm,U-DOMxx1\staffuser2,S-1-5-21-1390067357-1202660629-682003330-5776:/home/staffuser2:/bin/bash
$
--snip (exited and restarted bash in same Terminal Service session)
$ : we will be using Pierre's group listing program, that I named "_mygroups"
$ : to see the code, search ahead for "_mygroups.c"
$ : next I cat a script that will (eventually) show the problem
$ : ("OurServer108" below is a remote host)
$ cat /cygdrive/c/adm/ssh_test_my_rights00
#!/bin/bash -x
cd //OurServer108/tcm
id -G
id
:
whoami
/cygdrive/c/adm/_mygroups |grep 'use: 2'
:
/cygdrive/c/adm/_mygroups
$ : next, will run test script, it works just fine in a Terminal Service session:
$ /cygdrive/c/adm/ssh_test_my_rights00
+ cd //OurServer108/tcm
+ id -G
10513 544 545 1010 19858 19968 16025 16027 16024
+ id
uid=15776(staffuser2) gid=10513(Domain Users) groups=544(Administrators),545(Users),1010(Debugger Users),19858(ABC_NA-CTX-Notepad-A),19968(ABC_NA-DOMxx0-tcm-Users-A),10513(Domain Users),16025(XYZ_BLD_MGR),16027(XYZ_ES_STAFF),16024(XYZ_Users)
+ :
+ whoami
staffuser2
+ /cygdrive/c/adm/_mygroups
+ grep 'use: 2'
0: Domain Users, DOMxx1, use: 2 attribs: 7
11: XYZ_ES_STAFF, DOMxx1, use: 2 attribs: 7
12: XYZ_BLD_MGR, DOMxx1, use: 2 attribs: 7
13: ABC_NA-CTX-Notepad-A, DOMxx1, use: 2 attribs: 7
14: ABC_NA-DOMxx0-tcm-Users-A, DOMxx1, use: 2 attribs: 7
15: XYZ_Users, DOMxx1, use: 2 attribs: 7
+ :
+ /cygdrive/c/adm/_mygroups
0: Domain Users, DOMxx1, use: 2 attribs: 7
1: Everyone, , use: 5 attribs: 7
2: Debugger Users, OurSrvr064, use: 4 attribs: 7
3: Administrators, BUILTIN, use: 4 attribs: f
4: Users, BUILTIN, use: 4 attribs: 7
5: REMOTE INTERACTIVE LOGON, NT AUTHORITY, use: 5 attribs: 7
6: INTERACTIVE, NT AUTHORITY, use: 5 attribs: 7
7: Authenticated Users, NT AUTHORITY, use: 5 attribs: 7
8: This Organization, NT AUTHORITY, use: 5 attribs: 7
9: 5 0 4217733 attribs: c0000007
10: LOCAL, , use: 5 attribs: 7
11: XYZ_ES_STAFF, DOMxx1, use: 2 attribs: 7
12: XYZ_BLD_MGR, DOMxx1, use: 2 attribs: 7
13: ABC_NA-CTX-Notepad-A, DOMxx1, use: 2 attribs: 7
14: ABC_NA-DOMxx0-tcm-Users-A, DOMxx1, use: 2 attribs: 7
15: XYZ_Users, DOMxx1, use: 2 attribs: 7
16: ABC_NA-DL-CTX-Notepad Users-A, DOMxx1, use: 4 attribs: 20000007
17: CERTSVC_DCOM_ACCESS, DOMxx1, use: 4 attribs: 20000007
18: RILOE_SCM, DOMxx1, use: 4 attribs: 20000007
$
$ : so far so good, now try test in ssh, notice the 'cd' fails, notice 'whoami' and 'id -G' output
$ ssh localhost /cygdrive/c/adm/ssh_test_my_rights00
staffuser2 AT localhost's password:
+ cd //OurServer108/tcm
/cygdrive/c/adm/ssh_test_my_rights00: line 3: cd: //OurServer108/tcm: Permission denied
+ id -G
10513 544 545 1010 1008
+ id
uid=15776(staffuser2) gid=10513(Domain Users) groups=544(Administrators),545(Users),1010(Debugger Users),1008(OWS_2416084231_admin),10513(Domain Users)
+ :
+ whoami
OurSrvr064\sshd_server
+ /cygdrive/c/adm/_mygroups
+ grep 'use: 2'
5: Domain Users, DOMxx1, use: 2 attribs: 7
+ :
+ /cygdrive/c/adm/_mygroups
0: Everyone, , use: 5 attribs: 7
1: Authenticated Users, NT AUTHORITY, use: 5 attribs: 7
2: LOCAL, , use: 5 attribs: 7
3: SERVICE, NT AUTHORITY, use: 5 attribs: 7
4: 5 0 9916154 attribs: c0000007
5: Domain Users, DOMxx1, use: 2 attribs: 7
6: Administrators, BUILTIN, use: 4 attribs: 7
7: Users, BUILTIN, use: 4 attribs: 7
8: Debugger Users, OurSrvr064, use: 4 attribs: 7
9: OWS_2416084231_admin, OurSrvr064, use: 4 attribs: 7
$
--snip
$ : (edited /etc/group to add "staffuser2" to userlists [4th field] for groups that staffuser2 is in )
$ grep staffuser2 group
Administrators:S-1-5-32-544:544:staffuser2
Users:S-1-5-32-545:545:staffuser2
Debugger Users:S-1-5-21-1766903932-4289487963-3289224668-1010:1010:staffuser2
ABC_NA-CTX-Notepad-A:S-1-5-21-1390067357-1202660629-682003330-9858:19858:staffuser2
ABC_NA-DOMxx0-tcm-Users-A:S-1-5-21-1390067357-1202660629-682003330-9968:19968:staffuser2
Domain Users:S-1-5-21-1390067357-1202660629-682003330-513:10513:staffuser2
XYZ_BLD_MGR:S-1-5-21-1390067357-1202660629-682003330-6025:16025:staffuser2
XYZ_ES_STAFF:S-1-5-21-1390067357-1202660629-682003330-6027:16027:staffuser2
XYZ_Users:S-1-5-21-1390067357-1202660629-682003330-6024:16024:staffuser2
$ : Notice that next test fails again even though groups for staffuser2 more than match,
$ : the groups staffuser2 is in within a Term Service session (1008 is the extra local group).
$ ssh localhost /cygdrive/c/adm/ssh_test_my_rights00
staffuser2 AT localhost's password:
+ cd //OurServer108/tcm
/cygdrive/c/adm/ssh_test_my_rights00: line 3: cd: //OurServer108/tcm: Permission denied
+ id -G
10513 544 545 1010 1008 19858 19968 16025 16027 16024
+ id
uid=15776(staffuser2) gid=10513(Domain Users) groups=544(Administrators),545(Users),1010(Debugger Users),1008(OWS_2416084231_admin),19858(ABC_NA-CTX-Notepad-A),19968(ABC_NA-DOMxx0-tcm-Users-A),10513(Domain Users),16025(XYZ_BLD_MGR),16027(XYZ_ES_STAFF),16024(XYZ_Users)
+ :
+ whoami
OurSrvr064\sshd_server
+ /cygdrive/c/adm/_mygroups
+ grep 'use: 2'
8: ABC_NA-CTX-Notepad-A, DOMxx1, use: 2 attribs: 7
9: ABC_NA-DOMxx0-tcm-Users-A, DOMxx1, use: 2 attribs: 7
10: Domain Users, DOMxx1, use: 2 attribs: 7
11: XYZ_BLD_MGR, DOMxx1, use: 2 attribs: 7
12: XYZ_ES_STAFF, DOMxx1, use: 2 attribs: 7
13: XYZ_Users, DOMxx1, use: 2 attribs: 7
+ :
+ /cygdrive/c/adm/_mygroups
0: Everyone, , use: 5 attribs: 7
1: Authenticated Users, NT AUTHORITY, use: 5 attribs: 7
2: LOCAL, , use: 5 attribs: 7
3: SERVICE, NT AUTHORITY, use: 5 attribs: 7
4: 5 0 9916154 attribs: c0000007
5: Administrators, BUILTIN, use: 4 attribs: 7
6: Users, BUILTIN, use: 4 attribs: 7
7: Debugger Users, OurSrvr064, use: 4 attribs: 7
8: ABC_NA-CTX-Notepad-A, DOMxx1, use: 2 attribs: 7
9: ABC_NA-DOMxx0-tcm-Users-A, DOMxx1, use: 2 attribs: 7
10: Domain Users, DOMxx1, use: 2 attribs: 7
11: XYZ_BLD_MGR, DOMxx1, use: 2 attribs: 7
12: XYZ_ES_STAFF, DOMxx1, use: 2 attribs: 7
13: XYZ_Users, DOMxx1, use: 2 attribs: 7
14: OWS_2416084231_admin, OurSrvr064, use: 4 attribs: 7
$ :
$ grep :1008: /etc/group
OWS_2416084231_admin:S-1-5-21-1766903932-4289487963-3289224668-1008:1008:
end overview of problem, and attempt to fix
}
-- The new local groups, and their members; these groups were added on Monday -- {
C:\>net localgroup IIS_WPG
Alias name IIS_WPG
Comment IIS Worker Process Group
Members
-------------------------------------------------------------------------------
IWAM_OurSrvr064
NT AUTHORITY\NETWORK SERVICE
NT AUTHORITY\SERVICE
NT AUTHORITY\SYSTEM
The command completed successfully.
C:\>net localgroup OWS_2416084231_admin
Alias name OWS_2416084231_admin
Comment Microsoft SharePoint role 'admin' for web 'http://OurSrvr064'
Members
-------------------------------------------------------------------------------
Administrators
The command completed successfully.
C:\>net localgroup "Debugger Users"
Alias name Debugger Users
Comment Debugger Users are non administrators who are allowed to use Visual Studio to debug processes, both locally and remotely. Only trusted users should be added to this group
Members
-------------------------------------------------------------------------------
DOMxx1\staffuser2
IWAM_OurSrvr064
NT AUTHORITY\SYSTEM
The command completed successfully.
C:\>net localgroup "VS Developers"
Alias name VS Developers
Comment Visual Studio developers can author web sites on this computer
Members
-------------------------------------------------------------------------------
The command completed successfully.
end The new local groups added today
}
-- background --
This host is in a large Active Directory Domain, with thousands of
users; our /etc/group file has over 2500 lines. Our AD domain and forest has
mixture of global, and domain local groups. This host is used
as a software 'build engine', ie windows software is compiled there.
--
thanks,
Tom Rodman
--
------- =_aaaaaaaaaa0
Content-Type: text/plain; name="CygCheck.out"; charset="us-ascii"
Content-Disposition: attachment; filename="cygcheck.out"
Content-ID: <30705 DOT 1138722651 DOT 2 AT tigris DOT pounder DOT sol DOT net>
Content-Description: cygcheck -s -v -r
Cygwin Configuration Diagnostics
Current System Time: Tue Jan 31 09:04:08 2006
Windows 2003 Server Ver 5.2 staffuser2 3790 Service Pack 1
Running in Terminal Service session
Path: c:\aut\cyg\bin
c:\aut\m
c:\aut\ulb
\\OurServer108\tcm\adm\bin\sys
\\OurServer108\tcm\adm\bin\app
c:\aut\cyg\contrib\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\bcm63\bin
c:\bcm63\bin\util
c:\Program Files\Resource Kit
c:\HPOV\bin
c:\HPOV\bin\OpC
c:\PROGRA~1\ULTRAEDT
c:\Program Files\Microsoft SQL Server\80\Tools\BINN
c:\dev\bin
.\
Output from c:\aut\cyg\bin\id.exe (nontsec)
UID: 15776(staffuser2) GID: 10513(Domain Users)
544(Administrators) 545(Users)
1010(Debugger Users) 19858(ABC_NA-CTX-Notepad-A)
19968(ABC_NA-DOMxx0\-tcm-Users-A) 10513(Domain Users)
16025(XYZ_BLD_MGR) 16027(XYZ_ES_STAFF)
16024(XYZ_Users)
Output from c:\aut\cyg\bin\id.exe (ntsec)
UID: 15776(staffuser2) GID: 10513(Domain Users)
544(Administrators) 545(Users)
1010(Debugger Users) 19858(ABC_NA-CTX-Notepad-A)
19968(ABC_NA-DOMxx0\-tcm-Users-A) 10513(Domain Users)
16025(XYZ_BLD_MGR) 16027(XYZ_ES_STAFF)
16024(XYZ_Users)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER = 'staffuser2'
PWD = '/home/staffuser2'
CYGWIN = 'binmode tty ntsec smbntsec'
HOME = '/home/staffuser2'
MAKE_MODE = 'UNIX'
rv = '/adm/backup/recovery'
HOMEPATH = '\Documents and Settings\staffuser2'
cfl = '/adm/sa/cfglog'
MANPATH = ':/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\staffuser2\Application Data'
hostname = 'OurSrvr064'
VS71COMNTOOLS = 'C:\MSnet03\Common7\Tools\'
D = '/drv'
LCL_PATH_ADM = 'c:'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 8, GenuineIntel'
DIRCMD = '/A'
WINDIR = 'C:\WINDOWS'
TMPDIR = '/drv/c/temp'
WINDOWID = '4652232'
cu = '/adm/bin/cust'
OLDPWD = '/drv/c/Documents and Settings/staffuser2'
USERDOMAIN = 'DOMxx1\'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
dc = '/adm/doc'
XCM_MKEP01_DB = '\\OurServer108\bcmdb\xyzp01test'
svars_bash_defined = 'yes'
PATH_ADM = '//OurServer108/tcm'
OVDATADIR = 'C:\HPOV\data\'
BASH_BIN = 'c:\aut\cyg\bin'
rg = 'C:\WINDOWS\system32\config'
TEMP = '/drv/c/temp/3'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
bcm_REMD = '1'
PATH_ORIG = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\bcm63\bin;c:\bcm63\bin\util;c:\aut\perl5\bin;C:\Program Files\Resource Kit;C:\HPOV\bin;C:\HPOV\bin\OpC;C:\PROGRA~1\ULTRAEDT;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\dev\bin;'
T = '/adm/sa/tmp'
LIB = 'C:\MSnet03\SDK\v1.1\Lib\'
bas = '/adm/bin/app/s'
USERNAME = 'staffuser2'
CLUSTERLOG = 'C:\WINDOWS\Cluster\cluster.log'
doc = '/adm/doc'
dv = 'C:\WINDOWS\system32\drivers'
PROCESSOR_LEVEL = '15'
XCM_FILE_SERVER_HOST = 'OurServer108'
XCM_PRODUCTION_DB = '\\OurServer108\bcmdb\prodtest'
recovery = '/adm/backup/recovery'
nu = '/adm/doc/bcm/newuser'
XCM_ENGINE_HOST = 'OurServer108'
fdb = '/adm/db/sys/fdb_'
c9 = '//OurServer109/c_drive'
FP_NO_HOST_CHECK = 'NO'
c8 = '//OurServer108/c_drive'
SYSTEMDRIVE = 'C:'
b = '/adm/bin/sys'
be = '//OurServer109/d_drive/Installs/staffuser2 Engines'
lg = '/adm/log'
bb = '/adm/backup/bin'
USERPROFILE = 'C:\Documents and Settings\staffuser2'
CLIENTNAME = 'OurWorkStn00'
AUT_PATH_GNU = 'c:/aut'
TZ = 'CST6CDT'
ba = '/adm/bin/app'
sa = '/adm/sa'
LOGONSERVER = '\\OurServer53'
XCM_TYPE = 'DevBCM: '
dta = '/adm/db/app'
pro = '/adm/doc'
atl = '/adm/log/at'
ETC_MNTPNT_DOS = 'NONE'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\Documents and Settings\staffuser2'
cr = '/var/cron/tabs_edit'
OVAGENTDIR = 'C:\HPOV\data\'
l = '/lcl'
SHLVL = '1'
COLORFGBG = '15;default;0'
lj = '/adm/log/lj'
USERDNSDOMAIN = 'DOMxx1\.NA.OurBiz.COM'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
s9 = '//OurServer109/tcm'
ch = '/drv/c/bcm63'
bw = '/adm/bin/win'
pa = '/adm/sa/packager/adm_tree/data'
s8 = '//OurServer108/tcm'
RCSINIT = '-x,v/'
etc = 'C:\WINDOWS\system32\drivers\etc'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LOGNAME = 'staffuser2'
bu = '/adm/backup'
LESS = '-X'
TMP = '/drv/c/tmp/3'
SYSTEMROOT = 'C:\WINDOWS'
PROCESSOR_REVISION = '0408'
bs = '/adm/bin/sys/s'
bp = '/adm/config/bp'
pwd_orig = '/drv/c/Documents and Settings/staffuser2'
LS = '/etc/local.site'
s1 = '/adm/sa/1shot'
WA_DEF_RT = 's:'
PROGRAMFILES = 'C:\Program Files'
OVINSTALLDIR = 'C:\HPOV\'
DISPLAY = ':0'
XCM_PRODWATEST_DB = '\\OurServer108\bcmdb\prodwatest'
XCM_BUILD_ENGINES = 'OurServer120 OurServer121'
dts = '/adm/db/sys'
sr = 'C:\WINDOWS'
NUMBER_OF_PROCESSORS = '8'
LCL_AUT_DRV = 'c:'
XCM_MKEP01TEST62_DB = '\\OurServer108\bcmdb\xyzp01test62'
s32 = 'C:\WINDOWS\system32'
INCLUDE = 'C:\MSnet03\SDK\v1.1\include\'
jc = '/adm/bin/xcm_/client'
SESSIONNAME = 'RDP-Tcp#3'
COMPUTERNAME = 'OurSrvr064'
sv = '/adm/config/svars_all_shells'
cf = '/adm/config'
COLORTERM = 'rxvt-xpm'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x0000002a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'c:\aut\cyg'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/adm
(default) = '\\OurServer108\tcm\adm'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/aut
(default) = 'c:\aut'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/drv/a
(default) = 'a:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/drv/c
(default) = 'c:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/drv/s
(default) = '\\OurServer108\tcm'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/drv/t
(default) = 't:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/drv/y
(default) = 'y:'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/prep
(default) = '\\OurServer108\tcm\prep'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/public
(default) = '\\OurServer108\tcm\public'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/user
(default) = '\\OurServer108\tcm\user'
flags = 0x0000010a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'c:\aut\cyg\bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'c:\aut\cyg\lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A
c: hd NTFS 51199Mb 28% CP CS UN PA FC
t: hd NTFS 157175Mb 9% CP CS UN PA FC Data
y: cd N/A N/A
c:\aut\cyg / system binmode
\\OurServer108\tcm\adm /adm system binmode,noexec
c:\aut /aut system binmode
a: /drv/a system binmode
c: /drv/c system binmode
\\OurServer108\tcm /drv/s system binmode,noexec
t: /drv/t system binmode
y: /drv/y system binmode
\\OurServer108\tcm\prep /prep system binmode,noexec
\\OurServer108\tcm\public /public system binmode,noexec
\\OurServer108\tcm\user /user system binmode,noexec
c:\aut\cyg\bin /usr/bin system binmode
c:\aut\cyg\lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: c:\aut\cyg\bin\awk.exe
Found: c:\aut\cyg\bin\bash.exe
Found: c:\aut\cyg\bin\cat.exe
Found: c:\aut\cyg\bin\cp.exe
Not Found: cpp (good!)
Found: c:\aut\cyg\bin\crontab.exe
Found: c:\aut\cyg\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: c:\aut\cyg\bin\grep.exe
Found: c:\aut\cyg\bin\kill.exe
Found: c:\Program Files\Resource Kit\kill.exe
Warning: c:\aut\cyg\bin\kill.exe hides c:\Program Files\Resource Kit\kill.exe
Found: c:\aut\cyg\bin\ld.exe
Found: c:\aut\cyg\bin\ls.exe
Found: c:\aut\cyg\bin\make.exe
Found: c:\dev\bin\make.exe
Warning: c:\aut\cyg\bin\make.exe hides c:\dev\bin\make.exe
Found: c:\aut\cyg\bin\mv.exe
Found: c:\aut\cyg\bin\patch.exe
Found: c:\aut\cyg\bin\perl.exe
Found: c:\aut\cyg\bin\rm.exe
Found: c:\aut\cyg\bin\sed.exe
Found: c:\aut\cyg\bin\ssh.exe
Found: c:\aut\cyg\bin\sh.exe
Found: c:\aut\cyg\bin\tar.exe
Found: c:\aut\cyg\bin\test.exe
Not Found: vi
Found: c:\aut\cyg\bin\vim.exe
56k 2005/07/09 c:\aut\cyg\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
"cygbz2-1.dll" v0.0 ts=2005/7/9 0:09
7k 2005/11/20 c:\aut\cyg\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
"cygcharset-1.dll" v0.0 ts=2005/11/19 20:24
7k 2003/10/19 c:\aut\cyg\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
"cygcrypt-0.dll" v0.0 ts=2003/10/19 2:57
1108k 2005/10/17 c:\aut\cyg\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto-0.9.7.dll" v0.0 ts=2005/10/17 4:16
1047k 2005/10/11 c:\aut\cyg\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto-0.9.8.dll" v0.0 ts=2005/10/11 7:47
895k 2004/04/28 c:\aut\cyg\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
"cygdb-4.2.dll" v0.0 ts=2004/4/27 10:31
965k 2005/05/14 c:\aut\cyg\bin\cygdb-4.3.dll - os=4.0 img=1.0 sys=4.0
"cygdb-4.3.dll" v0.0 ts=2005/5/14 7:37
1156k 2004/04/28 c:\aut\cyg\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
"cygdb_cxx-4.2.dll" v0.0 ts=2004/4/27 10:35
1240k 2005/05/14 c:\aut\cyg\bin\cygdb_cxx-4.3.dll - os=4.0 img=1.0 sys=4.0
"cygdb_cxx-4.3.dll" v0.0 ts=2005/5/14 7:41
174k 2004/10/14 c:\aut\cyg\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
"cygexpat-0.dll" v0.0 ts=2004/10/14 3:34
40k 2005/09/29 c:\aut\cyg\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
"cygform-8.dll" v0.0 ts=2005/9/28 21:15
45k 2001/04/25 c:\aut\cyg\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 0:28
35k 2002/01/09 c:\aut\cyg\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2002/1/9 0:03
48k 2003/08/09 c:\aut\cyg\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
"cygform7.dll" v0.0 ts=2003/8/9 4:25
28k 2003/07/20 c:\aut\cyg\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-3.dll" v0.0 ts=2003/7/20 2:58
30k 2003/08/11 c:\aut\cyg\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-4.dll" v0.0 ts=2003/8/10 21:12
19k 2003/03/22 c:\aut\cyg\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/19 21:05
15k 2003/07/20 c:\aut\cyg\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 3:00
15k 2003/08/11 c:\aut\cyg\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 21:13
17k 2001/06/28 c:\aut\cyg\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 22:34
29k 2003/08/10 c:\aut\cyg\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2003/8/10 18:16
24k 2005/12/29 c:\aut\cyg\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
"cyghistory6.dll" v0.0 ts=2005/12/29 7:21
947k 2005/11/20 c:\aut\cyg\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2005/11/19 20:24
22k 2001/12/13 c:\aut\cyg\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 3:28
37k 2003/08/10 c:\aut\cyg\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
"cygintl-2.dll" v0.0 ts=2003/8/10 16:50
31k 2005/11/20 c:\aut\cyg\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
"cygintl-3.dll" v0.0 ts=2005/11/19 20:04
21k 2001/06/20 c:\aut\cyg\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 12:09
41k 2005/08/29 c:\aut\cyg\bin\cyglber-2-2-7.dll - os=4.0 img=1.0 sys=4.0
"cyglber-2-2-7.dll" v0.0 ts=2005/8/14 12:48
176k 2005/08/29 c:\aut\cyg\bin\cygldap-2-2-7.dll - os=4.0 img=1.0 sys=4.0
"cygldap-2-2-7.dll" v0.0 ts=2005/8/29 6:14
188k 2005/08/29 c:\aut\cyg\bin\cygldap_r-2-2-7.dll - os=4.0 img=1.0 sys=4.0
"cygldap_r-2-2-7.dll" v0.0 ts=2005/8/29 6:14
48k 2005/11/19 c:\aut\cyg\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
"cygmagic-1.dll" v0.0 ts=2005/11/19 5:22
21k 2005/09/29 c:\aut\cyg\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
"cygmenu-8.dll" v0.0 ts=2005/9/28 21:15
26k 2001/04/25 c:\aut\cyg\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 0:27
20k 2002/01/09 c:\aut\cyg\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2002/1/9 0:03
29k 2003/08/09 c:\aut\cyg\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
"cygmenu7.dll" v0.0 ts=2003/8/9 4:25
21k 2004/10/22 c:\aut\cyg\bin\cygminires.dll - os=4.0 img=1.0 sys=4.0
"cygminires.dll" v0.0 ts=2004/10/22 15:28
67k 2005/09/29 c:\aut\cyg\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++-8.dll" v0.0 ts=2005/9/28 21:16
156k 2001/04/25 c:\aut\cyg\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 0:29
175k 2002/01/09 c:\aut\cyg\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2002/1/9 0:03
226k 2005/09/29 c:\aut\cyg\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses-8.dll" v0.0 ts=2005/9/28 21:02
226k 2001/04/25 c:\aut\cyg\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 0:17
202k 2002/01/09 c:\aut\cyg\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2002/1/9 0:03
224k 2003/08/09 c:\aut\cyg\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
"cygncurses7.dll" v0.0 ts=2003/8/9 4:24
11k 2005/09/29 c:\aut\cyg\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
"cygpanel-8.dll" v0.0 ts=2005/9/28 21:15
15k 2001/04/25 c:\aut\cyg\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 0:27
12k 2002/01/09 c:\aut\cyg\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2002/1/9 0:03
19k 2003/08/09 c:\aut\cyg\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
"cygpanel7.dll" v0.0 ts=2003/8/9 4:24
176k 2005/09/06 c:\aut\cyg\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcre-0.dll" v0.0 ts=2005/9/6 15:49
299k 2005/09/06 c:\aut\cyg\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcrecpp-0.dll" v0.0 ts=2005/9/6 16:26
6k 2005/09/06 c:\aut\cyg\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix-0.dll" v0.0 ts=2005/9/6 16:26
1249k 2005/12/30 c:\aut\cyg\bin\cygperl5_8.dll - os=4.0 img=1.0 sys=4.0
"cygperl5_8.dll" v0.0 ts=2005/12/29 19:48
22k 2002/06/09 c:\aut\cyg\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/9 0:45
108k 2001/06/28 c:\aut\cyg\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 22:34
148k 2003/08/10 c:\aut\cyg\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2003/8/10 18:16
152k 2005/12/29 c:\aut\cyg\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
"cygreadline6.dll" v0.0 ts=2005/12/29 7:21
78k 2004/10/13 c:\aut\cyg\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
"cygsasl2-2.dll" v0.0 ts=2004/10/13 17:50
231k 2005/10/17 c:\aut\cyg\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
"cygssl-0.9.7.dll" v0.0 ts=2005/10/17 4:16
215k 2005/10/11 c:\aut\cyg\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
"cygssl-0.9.8.dll" v0.0 ts=2005/10/11 7:47
65k 2005/08/23 c:\aut\cyg\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2005/8/22 21:03
1763k 2006/01/20 c:\aut\cyg\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2006/1/20 12:28
Cygwin DLL version info:
DLL version: 1.5.19
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 150
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:
staffuser2 date: Fri Jan 20 13:28:43 EST 2006
CVS tag: cr-0x5ef
Shared id: cygwin1S4
Service : cron
Display name : Cron daemon
Current State : Stopped
Command : /usr/sbin/cron -D
stdin path : /dev/null
stdout path : /var/log/cron.log
stderr path : /var/log/cron.log
Environment : CYGWIN="ntsec"
Process Type : Own Process
Startup : Disabled
Account : .\sshd_server
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
Environment : CYGWIN="binmode tty ntsec smbntsec"
Process Type : Own Process
Startup : Automatic
Account : .\sshd_server
Cygwin Package Information
Last downloaded files to: \\OurServer108\aut\cyg_1.5.19
Last downloaded files from: \\OurServer108\aut\cyg_1.5.19
Package Version
_update-info-dir 00348-1
alternatives 1.3.20a-2
ash 20040127-3
autoconf 2.59-2
autoconf2.1 2.13-1
autoconf2.5 2.59-2
base-files 3.6-1
base-passwd 2.2-1
bash 3.0-14
bc 1.06-2
binutils 20050610-1
bzip2 1.0.3-1
chere 0.6-3
coreutils 5.93-2
cpio 2.6-5
cron 3.0.1-19
crypt 1.1-1
cygrunsrv 1.12-1
cygutils 1.2.9-1
cygwin 1.5.19-4
cygwin-doc 1.4-3
diffutils 2.8.7-1
editrights 1.01-1
email 2.3.4-1
expat 1.95.8-1
expect 20030128-1
file 4.16-1
findutils 4.2.27-1
gawk 3.1.5-2
gdbm 1.8.3-7
grep 2.5.1a-2
groff 1.18.1-2
gzip 1.3.5-1
hexedit 1.2.10-1
inetutils 1.3.2-35
XCM_bldeng 0.1-1
less 381-1
lftp 2.6.10-2
libbz2_1 1.0.3-1
libcharset1 1.9.2-2
libdb4.2 4.2.52-1
libdb4.3 4.3.28-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
libncurses5 5.2-1
libncurses6 5.2-8
libncurses7 5.3-4
libncurses8 5.4-4
libopenldap2_2_7 2.2.26-2
libpcre0 6.3-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-5
libreadline6 5.1-1
libsasl2 2.1.19-3
login 1.9-7
lynx 2.8.5-4
m4 1.4.4-1
make 3.80-1
man 1.5p-1
minires 1.00-1
mktemp 1.5-3
more 2.11o-2
ncftp 3.1.7-1
ncurses 5.4-4
netcat 1.10-2
openldap 2.2.26-2
openssh 4.2p1-1
openssl 0.9.8a-1
openssl097 0.9.7i-1
par 1.52-1
patch 2.5.8-8
perl 5.8.7-5
perl_manpages 5.8.7-5
ping 1.0-1
procps 3.2.5-1
psmisc 21.5-1
rcs 5.7-3
rebase 2.4.2-1
rsync 2.6.6-1
run 1.1.6-1
rxvt 2.7.10-6
sed 4.1.4-1
setsid 0.0-3
shutdown 1.7-1
ssmtp 2.60.9-3
stow 1.3.3-1
tar 1.15.1-3
tcltk 20030901-1
termcap 20050421-1
terminfo 5.4_20041009-1
texinfo 4.8-1
time 1.7-1
tzcode 2005r-2
units 1.77-1
unzip 5.50-5
vim 6.4-4
wget 1.10.2-1
which 1.7-1
whois 4.7.11-1
zip 2.3-6
zlib 1.2.3-1
Use -h to see help about each section
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <30705 DOT 1138722651 DOT 3 AT tigris DOT pounder DOT sol DOT net>
--
Pierre's group listing program {
$ ls -l /cygdrive/c/adm/_mygroups.*
-rw-r--r-- 1 staffuser2 XYZ_ES_STAFF 1030 Jan 31 06:54 /cygdrive/c/adm/_mygroups.c
-rwxrwxr-x 1 staffuser2 XYZ_ES_STAFF 12510 Jan 31 06:53 /cygdrive/c/adm/_mygroups.exe*
$ cat /cygdrive/c/adm/_mygroups.c #we'll be using Pierre's group listing program..
#include <windows.h>
#include <stdio.h>
main()
{
HANDLE token;
char buffer[1000];
DWORD size;
PTOKEN_GROUPS ptr = (PTOKEN_GROUPS) buffer;
if (OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token)
&& GetTokenInformation(token, TokenGroups, buffer, sizeof(buffer), &size))
{
int i;
for (i = 0; i < ptr->GroupCount; i++)
{
SID_NAME_USE use;
char name[100], domain[100];
DWORD namelen = sizeof(name), domlen = sizeof(domain);
printf("%d: ", i);
if (LookupAccountSid(NULL, ptr->Groups[i].Sid, name, &namelen, domain, &domlen, & use))
printf("%s, %s, use: %x ", name, domain, use);
else
{
int j;
for (j = 0; j < *GetSidSubAuthorityCount(ptr->Groups[i].Sid); j++)
printf("%lu ", *GetSidSubAuthority(ptr->Groups[i].Sid, j));
}
printf("attribs: %0x\n", ptr->Groups[i].Attributes);
}
}
else printf("Windows error %lu\n", GetLastError());
}
end Pierre's group listing program
}
--
Monday morning everything was fine. Later that day this software
was loaded on OurSrvr064 {
High-performance Embedded Workshop Updater
InstallShield X Standalone staffuser2
J2SE Development Kit 5.0 Update 2
J2SE Runtime Environment 5.0 Update 2
Java 2 Runtime Environment Standard Edition v1.3.1_10
Java 2 Runtime Environment, SE v1.4.1_07
Java 2 Runtime Environment, SE v1.4.2_10
Java 2 SDK Standard Edition v1.3.1_10
Java 2 SDK, SE v1.4.1_07
Java 2 SDK, SE v1.4.2_10
Java Web Start
--snip
MSXML 4.0 SP2 Parser and SDK
Microsoft FrontPage Client - English
Microsoft Learning - Software Updates
Microsoft Office Professional Edition 2003
Microsoft SOAP Toolkit 3.0
Microsoft SQL Server 2000
Microsoft Visual J# .NET Redistributable Package 1.1
Microsoft Visual Studio .NET Enterprise Architect 2003 - English
Microsoft Visual Studio 6.0 Enterprise Edition
Microsoft Web Publishing Wizard 1.53
Microsoft Windows CE Platform Manager 4.0
Microsoft eMbedded Visual C++ 4.0
MyODBC
Renesas AutoUpdate Utility
Visual Studio .NET Enterprise Architect 2003 - English
Visual Studio.NET Baseline - English
WinZip
WinZip Command Line Support Add-On
WinZip Self-Extractor
Windows CE .NET Utilities for Visual Studio .NET 2003 v1.1
eMbedded Visual C++ 4.0 SP2
eMbedded Visual C++ 4.0 SP4
end loaded on Monday on OurSrvr064
}
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset=us-ascii
--
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/
------- =_aaaaaaaaaa0--
- Raw text -