* Installed, Admin can run, other account can't... @ 2003-09-25 22:07 Marco Mason 2003-09-25 22:25 ` Igor Pechtchanski 2003-09-26 12:01 ` Jason Tishler 0 siblings, 2 replies; 9+ messages in thread From: Marco Mason @ 2003-09-25 22:07 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 565 bytes --] Hey, gang-- I've installed cygwin on a new box. After I set it up, I could run it as administrator. However, when I logged into a test account, I can't successfully start it. Trying to run it under the test account in a DOS shell: D:\cygwin\bin>bash --login -i D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. Terminating. D:\cygwin\bin> I tried googling for the message, but couldn't find anything useful. I ran a 'cygcheck -svr' and attached the output to this message as a text file. Does anyone have an idea of what I should try? --marco [-- Attachment #2: x --] [-- Type: text/plain, Size: 13013 bytes --] Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Sep 25 17:43:33 2003 Windows 2000 Advanced Server Ver 5.0 Build 2195 Service Pack 4 Path: d:\cygwin\usr\local\bin d:\cygwin\bin d:\cygwin\bin d:\cygwin\usr\X11R6\bin d:\Program Files\Micro Focus\Application Server c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem Output from d:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 513(None) Output from d:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\Documents and Settings\Administrator\WINDOWS HOME = `d:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/home/Administrator' USER = `Administrator' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Administrator\Application Data' CLIENTNAME = `EAGLE-LAP1' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `KHELDAR' COMSPEC = `C:\WINNT\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\Administrator' HOSTNAME = `kheldar' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\KHELDAR' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PKSFXDATA = `C:\Program Files\Common Files\PKWARE\Pksfxs.dat' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 0, AuthenticAMD' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0800' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SESSIONNAME = `RDP-Tcp#58' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\3' TERM = `cygwin' TMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\3' USERDOMAIN = `KHELDAR' USERNAME = `Administrator' USERPROFILE = `C:\Documents and Settings\Administrator' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck' 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 = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `d:\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `d:\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `d:\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A c: hd NTFS 10236Mb 32% CP CS UN PA FC d: hd NTFS 10236Mb 3% CP CS UN PA FC Applications e: hd NTFS 110595Mb 8% CP CS UN PA FC DATA m: cd N/A N/A p: net NTFS 110595Mb 8% CP CS UN PA FC DATA s: net NTFS 110595Mb 8% CP CS UN PA FC DATA d:\cygwin / system binmode d:\cygwin/bin /usr/bin system binmode d:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: d:\cygwin\bin\awk.exe Found: d:\cygwin\bin\bash.exe Found: d:\cygwin\bin\cat.exe Found: d:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: d:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: d:\cygwin\bin\grep.exe Not Found: ld Found: d:\cygwin\bin\ls.exe Found: d:\cygwin\bin\make.exe Found: d:\cygwin\bin\mv.exe Found: d:\cygwin\bin\rm.exe Found: d:\cygwin\bin\sed.exe Found: d:\cygwin\bin\sh.exe Found: d:\cygwin\bin\tar.exe 61k 2003/08/09 d:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2003/8/9 2:35 645k 2003/04/11 d:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2003/4/11 6:37 380k 2002/07/24 d:\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0 "cygdb-3.1.dll" v0.0 ts=2002/7/24 12:24 487k 2002/07/24 d:\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0 "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 12:25 45k 2001/04/25 d:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 1:28 35k 2002/01/09 d:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 1:03 48k 2003/08/09 d:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0 "cygform7.dll" v0.0 ts=2003/8/9 5:25 28k 2003/07/20 d:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-3.dll" v0.0 ts=2003/7/20 3:58 30k 2003/08/11 d:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-4.dll" v0.0 ts=2003/8/10 22:12 19k 2003/03/22 d:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/19 22:05 15k 2003/07/20 d:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 4:00 15k 2003/08/11 d:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 22:13 69k 2003/08/10 d:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0 "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 18:10 12k 2003/08/10 d:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0 "cyggettextpo-0.dll" v0.0 ts=2003/8/10 18:11 134k 2003/08/10 d:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0 "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 18:10 17k 2001/06/28 d:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/6 23:34 29k 2003/08/10 d:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2003/8/10 19:16 958k 2003/08/10 d:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2003/8/10 16:57 22k 2001/12/13 d:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 4:28 37k 2003/08/10 d:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2003/8/10 17:50 26k 2001/04/25 d:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 1:27 20k 2002/01/09 d:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 1:03 29k 2003/08/09 d:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0 "cygmenu7.dll" v0.0 ts=2003/8/9 5:25 156k 2001/04/25 d:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29 175k 2002/01/09 d:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03 226k 2001/04/25 d:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 1:17 202k 2002/01/09 d:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 1:03 224k 2003/08/09 d:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0 "cygncurses7.dll" v0.0 ts=2003/8/9 5:24 15k 2001/04/25 d:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 1:27 12k 2002/01/09 d:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 1:03 19k 2003/08/09 d:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0 "cygpanel7.dll" v0.0 ts=2003/8/9 5:24 67k 2003/09/10 d:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2003/9/10 10:25 63k 2003/04/11 d:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2003/4/11 4:31 15k 2003/09/10 d:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix-0.dll" v0.0 ts=2003/9/10 10:25 61k 2003/04/11 d:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2003/4/11 4:31 1100k 2003/08/29 d:\cygwin\bin\cygperl5_8_0.dll - os=4.0 img=1.0 sys=4.0 "cygperl5_8_0.dll" v0.0 ts=2003/8/29 6:20 22k 2002/06/09 d:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45 108k 2001/06/28 d:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/6 23:34 148k 2003/08/10 d:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2003/8/10 19:16 165k 2003/04/11 d:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2003/4/11 6:37 60k 2003/08/09 d:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2003/8/9 2:28 949k 2003/09/20 d:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/9/20 16:31 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 Last downloaded files to: E:\DIST_CYGWIN Last downloaded files from: http://mirror.mcs.anl.gov/cygwin Package Version _update-info-dir 00219-1 ash 20020731-3 base-files 2.6-1 base-passwd 1.1-1 bash 2.05b-15 bzip2 1.0.2-5 clear 1.0-1 cron 3.0.1-11 cygrunsrv 0.96-2 cygutils 1.2.1-2 cygwin 1.5.5-1 cygwin-doc 1.3-6 diffutils 2.8.4-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 libbz2_1 1.0.2-5 libdb3.1 3.1.17-2 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 libpcre0 4.4-2 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 login 1.9-7 make 3.80-1 man 1.5j-2 mktemp 1.5-3 ncurses 5.3-4 netcat 1.10-2 openssl096 0.9.6j-1 perl 5.8.0-5 perl_manpages 5.8.0-5 readline 4.3-5 rxvt 2.7.10-3 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 unzip 5.50-5 vim 6.2.098-1 wget 1.8.2-2 which 1.5-2 zip 2.3-5 zlib 1.1.4-4 Use -h to see help about each section [-- Attachment #3: Type: text/plain, Size: 218 bytes --] -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-25 22:07 Installed, Admin can run, other account can't Marco Mason @ 2003-09-25 22:25 ` Igor Pechtchanski 2003-09-26 15:26 ` Marco Mason 2003-09-26 12:01 ` Jason Tishler 1 sibling, 1 reply; 9+ messages in thread From: Igor Pechtchanski @ 2003-09-25 22:25 UTC (permalink / raw) To: Marco Mason; +Cc: cygwin On Thu, 25 Sep 2003, Marco Mason wrote: > Hey, gang-- > > I've installed cygwin on a new box. After I set it up, I could run it > as administrator. > However, when I logged into a test account, I can't successfully start > it. > > Trying to run it under the test account in a DOS shell: > > D:\cygwin\bin>bash --login -i > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > Terminating. > > D:\cygwin\bin> > > I tried googling for the message, but couldn't find anything useful. > > I ran a 'cygcheck -svr' and attached the output to this message as a > text file. > > Does anyone have an idea of what I should try? > --marco $ net helpmsg 5 Access is denied. $ Basically, it looks like Win2k couldn't run the application as the test user. What's the output of "ls -l /bin/bash.exe"? How about "getfacl /bin/bash.exe"? You may need to change the permissions manually on your Cygwin tree, using the "chmod -R" command. 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-25 22:25 ` Igor Pechtchanski @ 2003-09-26 15:26 ` Marco Mason 2003-09-26 15:32 ` Igor Pechtchanski 0 siblings, 1 reply; 9+ messages in thread From: Marco Mason @ 2003-09-26 15:26 UTC (permalink / raw) To: cygwin Igor Pechtchanski wrote: > On Thu, 25 Sep 2003, Marco Mason wrote: > > > Hey, gang-- > > > > I've installed cygwin on a new box. After I set it up, I could run it > > as administrator. > > However, when I logged into a test account, I can't successfully start > > it. > > > > Trying to run it under the test account in a DOS shell: > > > > D:\cygwin\bin>bash --login -i > > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > > Terminating. > > > > D:\cygwin\bin> > > > > I tried googling for the message, but couldn't find anything useful. > > > > I ran a 'cygcheck -svr' and attached the output to this message as a > > text file. > > > > Does anyone have an idea of what I should try? > > --marco > > $ net helpmsg 5 > Access is denied. > $ > > Basically, it looks like Win2k couldn't run the application as the test > user. What's the output of "ls -l /bin/bash.exe"? How about "getfacl > /bin/bash.exe"? You may need to change the permissions manually on your > Cygwin tree, using the "chmod -R" command. > Igor Here's what you asked: $ ls -al /bin/bash.exe -rwx------+ 1 Administ Users 534016 Sep 15 05:47 /bin/bash.exe $ getfacl /bin/bash.exe # file: /bin/bash # owner: Administrators # group: Users user::rwx group::--- group:D-Application Server-RW:rwx mask:rwx other:--- The user having difficulties is named 'EagleGen' and is a member of the D-Application Server-RW group. --marco -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-26 15:26 ` Marco Mason @ 2003-09-26 15:32 ` Igor Pechtchanski 2003-09-26 20:19 ` Marco Mason 2003-09-27 1:48 ` Pierre A. Humblet 0 siblings, 2 replies; 9+ messages in thread From: Igor Pechtchanski @ 2003-09-26 15:32 UTC (permalink / raw) To: Marco Mason; +Cc: cygwin On Fri, 26 Sep 2003, Marco Mason wrote: > Igor Pechtchanski wrote: > > > On Thu, 25 Sep 2003, Marco Mason wrote: > > > > > Hey, gang-- > > > > > > I've installed cygwin on a new box. After I set it up, I could run it > > > as administrator. > > > However, when I logged into a test account, I can't successfully start > > > it. > > > > > > Trying to run it under the test account in a DOS shell: > > > > > > D:\cygwin\bin>bash --login -i > > > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > > > Terminating. > > > > > > D:\cygwin\bin> > > > > > > I tried googling for the message, but couldn't find anything useful. > > > > > > I ran a 'cygcheck -svr' and attached the output to this message as a > > > text file. > > > > > > Does anyone have an idea of what I should try? > > > --marco > > > > $ net helpmsg 5 > > Access is denied. > > $ > > > > Basically, it looks like Win2k couldn't run the application as the test > > user. What's the output of "ls -l /bin/bash.exe"? How about "getfacl > > /bin/bash.exe"? You may need to change the permissions manually on your > > Cygwin tree, using the "chmod -R" command. > > Igor > > Here's what you asked: > > $ ls -al /bin/bash.exe > -rwx------+ 1 Administ Users 534016 Sep 15 05:47 /bin/bash.exe > > $ getfacl /bin/bash.exe > # file: /bin/bash > # owner: Administrators > # group: Users > user::rwx > group::--- > group:D-Application Server-RW:rwx > mask:rwx > other:--- > > The user having difficulties is named 'EagleGen' and is a member of the > D-Application Server-RW group. > > --marco Ok. This pretty much confirms my guess. A quick fix would be to "chmod -R a+x /bin /usr/X11R6/bin /usr/sbin /usr/i686-pc-* /usr/lib/gcc-lib && chmod -R a+r /usr /etc /lib /var". I may have missed some directories with executables. You may also need to give write access to everyone in /tmp and /var... The "real" fix would be to make setup create the directories with the right permissions from the start. I'm not sure this is possible. Perhaps people with more knowledge of ACLs (Pierre, Corinna, CGF?) will chime in and offer their opinions... 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-26 15:32 ` Igor Pechtchanski @ 2003-09-26 20:19 ` Marco Mason 2003-09-27 1:48 ` Pierre A. Humblet 1 sibling, 0 replies; 9+ messages in thread From: Marco Mason @ 2003-09-26 20:19 UTC (permalink / raw) To: cygwin Igor Pechtchanski wrote: > On Fri, 26 Sep 2003, Marco Mason wrote: > > > Igor Pechtchanski wrote: > > > > > On Thu, 25 Sep 2003, Marco Mason wrote: > > > > > > > Hey, gang-- > > > > > > > > I've installed cygwin on a new box. After I set it up, I could run it > > > > as administrator. > > > > However, when I logged into a test account, I can't successfully start > > > > it. > > > > > > > > Trying to run it under the test account in a DOS shell: > > > > > > > > D:\cygwin\bin>bash --login -i > > > > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > > > > Terminating. > > > > > > > > D:\cygwin\bin> > > > > > > > > I tried googling for the message, but couldn't find anything useful. > > > > > > > > I ran a 'cygcheck -svr' and attached the output to this message as a > > > > text file. > > > > > > > > Does anyone have an idea of what I should try? > > > > --marco > > > > > > $ net helpmsg 5 > > > Access is denied. > > > $ > > > > > > Basically, it looks like Win2k couldn't run the application as the test > > > user. What's the output of "ls -l /bin/bash.exe"? How about "getfacl > > > /bin/bash.exe"? You may need to change the permissions manually on your > > > Cygwin tree, using the "chmod -R" command. > > > Igor > > > > Here's what you asked: > > > > $ ls -al /bin/bash.exe > > -rwx------+ 1 Administ Users 534016 Sep 15 05:47 /bin/bash.exe > > > > $ getfacl /bin/bash.exe > > # file: /bin/bash > > # owner: Administrators > > # group: Users > > user::rwx > > group::--- > > group:D-Application Server-RW:rwx > > mask:rwx > > other:--- > > > > The user having difficulties is named 'EagleGen' and is a member of the > > D-Application Server-RW group. > > > > --marco > > Ok. This pretty much confirms my guess. > > A quick fix would be to "chmod -R a+x /bin /usr/X11R6/bin /usr/sbin > /usr/i686-pc-* /usr/lib/gcc-lib && chmod -R a+r /usr /etc /lib /var". I > may have missed some directories with executables. You may also need to > give write access to everyone in /tmp and /var... > Hmmm... I just tried this, and I still can't seem to make it operate. I'm going to have to start learning how the Windows Security stuff is put together so I can try some more. > > The "real" fix would be to make setup create the directories with the > right permissions from the start. I'm not sure this is possible. > Perhaps people with more knowledge of ACLs (Pierre, Corinna, CGF?) will > chime in and offer their opinions... > Igor > -- If it's a security thing, then perhaps setup will create the directories properly if I fix the security and then reinstall. At least, I'm hoping so.. 8^) Thanks for your assistance... --marco -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-26 15:32 ` Igor Pechtchanski 2003-09-26 20:19 ` Marco Mason @ 2003-09-27 1:48 ` Pierre A. Humblet 2003-09-27 2:11 ` Igor Pechtchanski 1 sibling, 1 reply; 9+ messages in thread From: Pierre A. Humblet @ 2003-09-27 1:48 UTC (permalink / raw) To: cygwin, Marco Mason At 11:31 AM 9/26/2003 -0400, Igor Pechtchanski wrote: > >The "real" fix would be to make setup create the directories with the >right permissions from the start. I'm not sure this is possible. >Perhaps people with more knowledge of ACLs (Pierre, Corinna, CGF?) will >chime in and offer their opinions... Sure, but what are the right permissions? Some people objet to giving access to Everybody. The group name and whether the group should have write access are matters of local preference. So setup uses the default inheritable acl of the directory under which cygwin is installed. It works just fine in most cases. I don't know why in this case group Users got no rights. This is not a typical factory default, it was most probably set that way for some local reason. Perhaps the exit message of setup should be to remind the installer to verify the permissions (PTC). Or perhaps that's another test that could be added into /etc/profile, nagging the user "are you sure this is really what you want". Pierre -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-27 1:48 ` Pierre A. Humblet @ 2003-09-27 2:11 ` Igor Pechtchanski 0 siblings, 0 replies; 9+ messages in thread From: Igor Pechtchanski @ 2003-09-27 2:11 UTC (permalink / raw) To: Pierre A. Humblet; +Cc: cygwin On Fri, 26 Sep 2003, Pierre A. Humblet wrote: > At 11:31 AM 9/26/2003 -0400, Igor Pechtchanski wrote: > > > >The "real" fix would be to make setup create the directories with the > >right permissions from the start. I'm not sure this is possible. > >Perhaps people with more knowledge of ACLs (Pierre, Corinna, CGF?) will > >chime in and offer their opinions... > > Sure, but what are the right permissions? Some people objet to giving > access to Everybody. The group name and whether the group should have > write access are matters of local preference. > > So setup uses the default inheritable acl of the directory under which > cygwin is installed. It works just fine in most cases. I don't know why > in this case group Users got no rights. This is not a typical factory > default, it was most probably set that way for some local reason. > > Perhaps the exit message of setup should be to remind the installer > to verify the permissions (PTC). > Or perhaps that's another test that could be added into /etc/profile, > nagging the user "are you sure this is really what you want". > > Pierre Hmm, I guess it would make sense for setup to check the permissions on the Cygwin root directory *before* installing any files in it, especially if it's a new install and it's creating the root directory (I suppose it would inherit from c:\ in that case, right?). This way, if setup determines that the root directory *it just created* has very restrictive permissions, it could warn the user, or even open a Windows security dialog for c:\cygwin (or whatever the root is) and let the user fix the permissions before creating more directories or installing files. Again, this is all PTC, and I just wanted to get this into the archives for now. 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-25 22:07 Installed, Admin can run, other account can't Marco Mason 2003-09-25 22:25 ` Igor Pechtchanski @ 2003-09-26 12:01 ` Jason Tishler 2003-09-26 12:20 ` Jason Tishler 1 sibling, 1 reply; 9+ messages in thread From: Jason Tishler @ 2003-09-26 12:01 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 838 bytes --] Marco, On Thu, Sep 25, 2003 at 05:40:22PM -0400, Marco Mason wrote: > I've installed cygwin on a new box. After I set it up, I could run it > as administrator. However, when I logged into a test account, I can't > successfully start it. > > Trying to run it under the test account in a DOS shell: > > D:\cygwin\bin>bash --login -i > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > Terminating. See the attached. It is likely the above is the same problem. If so, then Pierre Humblet has a patch to correct this problem. > Does anyone have an idea of what I should try? What is you gid? $ id -g 513 If it is not 544, then edit your /etc/passwd so that it is. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 [-- Attachment #2: Type: message/rfc822, Size: 1930 bytes --] [-- Attachment #2.1.1: Type: text/plain, Size: 600 bytes --] Pierre, The following change breaks proftpd: http://cygwin.com/ml/cygwin-cvs/2003-q3/msg00237.html By "breaks", I mean the following failure occurs when a user attempts to authenticate: C:\Cygwin\usr\sbin\proftpd.exe: *** CreateFileMapping, Win32 error 5. Terminating. I was able to workaround and isolate the problem with the attached "patch" -- that is reverting to the old behavior. Any ideas on how to fix the problem correctly? Thanks, Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 [-- Attachment #2.1.2: shared.cc.diff --] [-- Type: text/plain, Size: 625 bytes --] Index: shared.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/shared.cc,v retrieving revision 1.73 diff -u -p -r1.73 shared.cc --- shared.cc 11 Sep 2003 07:57:39 -0000 1.73 +++ shared.cc 18 Sep 2003 12:51:59 -0000 @@ -97,7 +97,7 @@ open_shared (const char *name, int n, HA TRUE, mapname); } if (!shared_h && - !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa, + !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all, PAGE_READWRITE, 0, size, mapname))) api_fatal ("CreateFileMapping, %E. Terminating."); } [-- Attachment #3: Type: text/plain, Size: 218 bytes --] -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Installed, Admin can run, other account can't... 2003-09-26 12:01 ` Jason Tishler @ 2003-09-26 12:20 ` Jason Tishler 0 siblings, 0 replies; 9+ messages in thread From: Jason Tishler @ 2003-09-26 12:20 UTC (permalink / raw) To: cygwin On Fri, Sep 26, 2003 at 07:59:33AM -0400, Jason Tishler wrote: > What is you gid? ^^^ s/you/your/ Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- 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/ ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2003-09-27 1:48 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-09-25 22:07 Installed, Admin can run, other account can't Marco Mason 2003-09-25 22:25 ` Igor Pechtchanski 2003-09-26 15:26 ` Marco Mason 2003-09-26 15:32 ` Igor Pechtchanski 2003-09-26 20:19 ` Marco Mason 2003-09-27 1:48 ` Pierre A. Humblet 2003-09-27 2:11 ` Igor Pechtchanski 2003-09-26 12:01 ` Jason Tishler 2003-09-26 12:20 ` Jason Tishler
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).