messed up user permissions from w2k terminal session
James D Below
James.Below@grc.nasa.gov
Mon Oct 6 17:37:00 GMT 2003
In further troubleshooting, I verified the w2k sp4 the policy settings with
another w2k sp4 system that works. No differences were found. I did find
that the version of cygwin that I was running was different. The version of
cygwin on the working system is 1.3.22-1.
I removed my broken installation of cygwin 1.5.5.1 and installed 1.3.22-1
and my system function correctly. No more "CreateFileMapping - Win32 error 5".
I have attached the cygcheck from the working installation as cygcheck.good
I have attached the cygcheck from the broken installation as cygcheck.bad
Just to verify that 1.5.5.1 still didn't work, I updated the working
1.3.22-1 installation and sure enough the "CreateFileMapping" error
occurred. I also tried the 1.5.4.1 version and that also had this same error.
Here is a getfacl and a ls of "ls.exe"
getfacl /bin/ls.exe
# file: /bin/ls.exe
# owner: Administrator
# group: Users
user::---
group::---
mask:rwx
other:rwx
/bin/ls -l /bin/ls
-rwxrwxrwx 1 Administ Users 68608 Jun 15 2001 /bin/ls
I have never installed/built cygwin from snapshot. I'll give it a try and
get back with you.
thanks.
At 05:12 PM 10/3/2003 -0400, Igor Pechtchanski wrote:
>On Fri, 3 Oct 2003, James D Below wrote:
>
> > HI everyone,
> >
> > I'm not sure how I did it but I messed up my user permissions or local
> > policy settings. Now whenever I run any cygwin app (bash.exe, wc.exe,
> > rxvt.exe) from a w2k terminal session and logged in as a user, I see the
> > following error:
> >
> > **** CreateFileMapping, Win32 error 5. Terminating.
> >
> > I'm running Windows 2000 SP4 and CYGWIN = binmode tty ntsec
> >
> > More specific details....
> >
> > If I am logged into the console I can run any cygwin apps. When I log in
> > remotely to the server through ssh, everything is fine. The only time a
> > problem occurs is when I login through a terminal server client using an
> > account other than "Administrator". The administrator account doesn't
> > experience problem. A user account belonging in the Administrators
> group does.
> >
> > I am at a loss trying to figure out which policy/permission was changed to
> > cause this problem.
> >
> > I've been google'ing for a few days trying to track down what might have
> > changed but to no avail.
> >
> > Any hints on troubleshooting errors like this or an idea as to what
> > permission/policy is needed for "CreateFileMapping", would be appreciated.
> >
> > If a cygcheck would be helpful let me know and I will send one.
> >
> > thanks
> > James
>
>A cygcheck output wouldn't hurt in any case (please attach it, though,
>rather than including it inline), but another piece of information that
>might help is the output of "ls -l /bin/ls.exe; getfacl /bin/ls.exe".
>
>BTW, "net helpmsg 5" results in "Access is denied".
> Igor
>--
> http://cs.nyu.edu/~pechtcha/
> |\ _,,,---,,_ pechtcha@cs.nyu.edu
>ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
> |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
>
>"I have since come to realize that being between your mentor and his route
>to the bathroom is a major career booster." -- Patrick Naughton
>
>--
>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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.good
Type: application/octet-stream
Size: 8281 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031006/d9aae650/attachment.obj>
-------------- next part --------------
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 06 09:59:59 2003
Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4
Path: H:\cygwin\usr\local\bin
H:\cygwin\bin
H:\cygwin\bin
H:\cygwin\usr\X11R6\bin
h:\Program Files\Common Files\VERITAS Shared
h:\PROGRA~1\VERITAS\NetBackup\bin
h:\Program Files\Microsoft Visual Studio\Common\Tools
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\BIN
h:\Program Files\Microsoft Visual Studio\DF98\BIN
h:\Program Files\Microsoft Visual Studio\VC98\BIN
h:\WINNT\system32
h:\WINNT
h:\WINNT\System32\Wbem
h:\Program Files\Rational\ClearCase\bin
h:\Program Files\Common Files\Adaptec Shared\System
h:\Program Files\Microsoft Visual Studio\Common\Msdev98\Bin
x:\dev\bin
h:\mico\win32-bin
Output from H:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
513(Domain Users) 519(Enterprise Admins)
520(Group Policy Creator Owners)
1105(ncp) 518(Schema Admins)
Output from H:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 1105(ncp)
512(Domain Admins)
513(Domain Users) 519(Enterprise Admins)
520(Group Policy Creator Owners)
1105(ncp) 518(Schema Admins)
SysDir: H:\WINNT\system32
WinDir: H:\Documents and Settings\administrator.NPSS\WINDOWS
HOME = `H:\cygwin\u\Administrator'
MAKE_MODE = `unix'
PWD = `/u/Administrator'
USER = `Administrator'
Use `-r' to scan registry
a: fd N/A N/A
c: hd FAT 2047Mb 63% CP UN LOCAL DISK
d: fd N/A N/A
e: hd NTFS 15311Mb 91% CP CS UN PA FC Local Disk
f: cd N/A N/A
g: cd N/A N/A
h: hd NTFS 9530Mb 89% CP CS UN PA FC Local Disk
m: net MVFS 1000Mb 50% CP CS CCase
H:\cygwin / system binmode
H:\cygwin/bin /usr/bin system binmode
H:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: H:\cygwin\bin\awk.exe
Found: H:\cygwin\bin\bash.exe
Found: H:\cygwin\bin\cat.exe
Found: H:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: H:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: H:\cygwin\bin\grep.exe
Not Found: ld
Found: H:\cygwin\bin\ls.exe
Not Found: make
Found: H:\cygwin\bin\mv.exe
Found: H:\cygwin\bin\rm.exe
Found: H:\cygwin\bin\sed.exe
Found: H:\cygwin\bin\sh.exe
Found: H:\cygwin\bin\tar.exe
45k 2001/04/25 H:\cygwin\bin\cygform5.dll
35k 2002/01/09 H:\cygwin\bin\cygform6.dll
48k 2003/08/09 H:\cygwin\bin\cygform7.dll
28k 2003/07/20 H:\cygwin\bin\cyggdbm-3.dll
30k 2003/08/11 H:\cygwin\bin\cyggdbm-4.dll
19k 2003/03/22 H:\cygwin\bin\cyggdbm.dll
15k 2003/07/20 H:\cygwin\bin\cyggdbm_compat-3.dll
15k 2003/08/11 H:\cygwin\bin\cyggdbm_compat-4.dll
69k 2003/08/10 H:\cygwin\bin\cyggettextlib-0-12-1.dll
12k 2003/08/10 H:\cygwin\bin\cyggettextpo-0.dll
134k 2003/08/10 H:\cygwin\bin\cyggettextsrc-0-12-1.dll
17k 2001/06/28 H:\cygwin\bin\cyghistory4.dll
29k 2003/08/10 H:\cygwin\bin\cyghistory5.dll
958k 2003/08/10 H:\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 H:\cygwin\bin\cygintl-1.dll
37k 2003/08/10 H:\cygwin\bin\cygintl-2.dll
26k 2001/04/25 H:\cygwin\bin\cygmenu5.dll
20k 2002/01/09 H:\cygwin\bin\cygmenu6.dll
29k 2003/08/09 H:\cygwin\bin\cygmenu7.dll
156k 2001/04/25 H:\cygwin\bin\cygncurses++5.dll
175k 2002/01/09 H:\cygwin\bin\cygncurses++6.dll
226k 2001/04/25 H:\cygwin\bin\cygncurses5.dll
202k 2002/01/09 H:\cygwin\bin\cygncurses6.dll
224k 2003/08/09 H:\cygwin\bin\cygncurses7.dll
15k 2001/04/25 H:\cygwin\bin\cygpanel5.dll
12k 2002/01/09 H:\cygwin\bin\cygpanel6.dll
19k 2003/08/09 H:\cygwin\bin\cygpanel7.dll
63k 2003/04/11 H:\cygwin\bin\cygpcre.dll
61k 2003/04/11 H:\cygwin\bin\cygpcreposix.dll
108k 2001/06/28 H:\cygwin\bin\cygreadline4.dll
148k 2003/08/10 H:\cygwin\bin\cygreadline5.dll
60k 2003/08/09 H:\cygwin\bin\cygz.dll
949k 2003/09/20 H:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.5.5
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 94
Shared data: 3
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: Sat Sep 20 16:31:15 EDT 2003
CVS tag: cr-0x9b
Shared id: cygwin1S3
Cygwin Package Information
Package Version
_update-info-dir 00221-1
ash 20020731-3
base-files 2.6-1
base-passwd 1.1-1
bash 2.05b-15
bzip2 1.0.2-5
cygwin 1.5.5-1
diffutils 2.8.4-1
editrights 1.01-1
fileutils 4.1-2
findutils 4.1.7-4
gawk 3.1.3-3
gdbm 1.8.3-7
grep 2.5-1
groff 1.18.1-2
gzip 1.3.5-1
less 381-1
libgdbm 1.8.0-5
libgdbm-devel 1.8.3-7
libgdbm3 1.8.3-3
libgdbm4 1.8.3-7
libgettextpo0 0.12.1-3
libiconv2 1.9.1-3
libintl1 0.10.40-1
libintl2 0.12.1-3
libncurses5 5.2-1
libncurses6 5.2-8
libncurses7 5.3-4
libpcre 4.1-1
libreadline4 4.1-2
libreadline5 4.3-5
login 1.9-7
man 1.5j-2
mktemp 1.5-3
ncurses 5.3-4
readline 4.3-5
sed 4.0.7-3
sh-utils 2.0.15-4
tar 1.13.25-3
termcap 20021106-2
terminfo 5.3_20030726-1
texinfo 4.2-4
textutils 2.0.21-1
which 1.5-2
zlib 1.1.4-4
Use -h to see help about each section
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list