Problems using startxwin.bat
I've been a subscriber to this list for some time, but I believe this is my first post. I'm a college professor who uses Cygwin in a small PC lab. I can start an X server just fine (I'm an Administrator under Windows on these machines) but my students cannot. I've already read the FAQ. Here are the specifics: i) When my students attempt to run startxwin.bat, they get a dialog box telling them they have a fatal error and to look at Xwin.log (I have attached an Xwin.log from a machine where a student attempted to use startxwin.bat). I do not get this error when I run startxwin.bat; the X server comes up just fine. ii) Here is the result of running ls -al /tmp /tmp/.X11-unix: /tmp: total 8 drwxrwxrwt+ 3 blandry Users 0 Feb 6 09:07 . drwxrwxrwx+ 15 blandry Users 0 Jan 28 16:50 .. drwxrwxrwt+ 2 lgriffith Domain Users0 Feb 5 13:59 .X11-unix -rwxr-xr-x 1 lgriffith Users4533 Jan 28 17:33 XWin.log /tmp/.X11-unix: total 0 drwxrwxrwt+ 2 lgriffith Domain Users 0 Feb 5 13:59 . drwxrwxrwt+ 3 blandry Users0 Feb 6 09:07 .. (lgriffith is my account and it is an Administrator under Windows. blandry is the account of our lab tech and it is not an administrator account.) iii) The XWin.log file doesn't tell me what the error is. Maybe you'll have better luck reading it. I know that starting the X server is one of the most frequently asked questions on this list, but I don't recall ever seeing this variant of it before. Thanks for any help you can give! Larry Griffith Here is the XWin.log file: _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 768 depth: 32 winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0409 (0409) (--) Using preset keyboard for English (USA) (409), type 4 (--) 3 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! winInitMultiWindowWM - pthread_mutex_lock () returned. winProcEstablishConnection - Hello winInitClipboard () winProcEstablishConnection - winInitClipboard returned. winClipboardProc - Hello DetectUnicodeSupport - Windows NT/2000/XP winClipboardProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_lock () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winClipboardProc - XOpenDisplay () returned and successfully opened the display. winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop. winClipboardProc - XDestroyWindow succeeded. winMultiWindowXMsgProcIOErrorHandler! winInitMultiWindowXMsgProc - Caught IO Error. Exiting. FreeFontPath: FPE /usr/X11R6/lib/X11/fonts/misc/ refcount is 2, should be 1; fixing. (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 768 depth: 32 winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winMultiWindowXMsgProc - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support winMultiWindowXMsgProc - Calling pthread_mutex_lock () XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0409 (0409) (--) Using preset keyboard for English (USA) (409), type
Re: Problems using startxwin.bat
[EMAIL PROTECTED] wrote: I've been a subscriber to this list for some time, but I believe this is my first post. I'm a college professor who uses Cygwin in a small PC lab. I can start an X server just fine (I'm an Administrator under Windows on these machines) but my students cannot. I've already read the FAQ. Here are the specifics: i) When my students attempt to run startxwin.bat, they get a dialog box telling them they have a fatal error and to look at Xwin.log (I have attached an Xwin.log from a machine where a student attempted to use startxwin.bat). I do not get this error when I run startxwin.bat; the X server comes up just fine. ii) Here is the result of running ls -al /tmp /tmp/.X11-unix: /tmp: total 8 drwxrwxrwt+ 3 blandry Users 0 Feb 6 09:07 . drwxrwxrwx+ 15 blandry Users 0 Jan 28 16:50 .. drwxrwxrwt+ 2 lgriffith Domain Users0 Feb 5 13:59 .X11-unix -rwxr-xr-x 1 lgriffith Users4533 Jan 28 17:33 XWin.log /tmp/.X11-unix: total 0 drwxrwxrwt+ 2 lgriffith Domain Users 0 Feb 5 13:59 . drwxrwxrwt+ 3 blandry Users0 Feb 6 09:07 .. (lgriffith is my account and it is an Administrator under Windows. blandry is the account of our lab tech and it is not an administrator account.) There have been similar posts in the past about how to set up for multiple users. Since I don't have that setup, I can only offer a couple vague suggestions, including that you search again for those posts. You seem to be on the right track that the problem is access to these files and directories in /tmp. If the files are there owned by you, another user can't come along and overwrite them. I believe some of the suggestions in the past included things like making sure this stuff gets cleaned up in /tmp and/or giving each user their own /tmp ($TMP or $TEMP). HTH, Cary -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
src/winsup/cygwin ChangeLog fhandler.h fhandle ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2008-02-06 18:24:50 Modified files: winsup/cygwin : ChangeLog fhandler.h fhandler_console.cc miscfuncs.cc strfuncs.cc winsup.h winsup/cygwin/include: limits.h Log message: * fhandler.h (fhandler_console::trunc_buf): Add to use as cache for truncated multibyte characters on input. (fhandler_console::write_replacement_char): Declare new method. * fhandler_console.cc (CONVERT_LIMIT): Raise to 64K. (fhandler_console::fhandler_console): Initialize trunc_buf. (ERR): Define as independent value again. (fhandler_console::write_replacement_char): New method to print replacement chars. (fhandler_console::write_normal): Add handling for truncated multibyte sequences. Call next_char instead of pathetic CharNextExA function. Don't change src, rather just work with found later on. * miscfuncs.cc (is_cp_multibyte): Move here from strfuncs.cc. Don't call Windows function, restrict to well-known ANSI/OEM codepages and UTF-8. (next_char): Call CharNextExA only for doublebyte codepages. Implement for UTF-8 here. * strfuncs.cc (is_cp_multibyte): Move to miscfuncs.cc. * winsup.h (next_char): Declare. * include/limits.h (MB_LEN_MAX): Set to maximum value of MB_CUR_MAX as defined by newlib for now. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.3999r2=1.4000 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=srcr1=1.333r2=1.334 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_console.cc.diff?cvsroot=srcr1=1.172r2=1.173 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/miscfuncs.cc.diff?cvsroot=srcr1=1.46r2=1.47 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/strfuncs.cc.diff?cvsroot=srcr1=1.6r2=1.7 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/winsup.h.diff?cvsroot=srcr1=1.207r2=1.208 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/limits.h.diff?cvsroot=srcr1=1.22r2=1.23
src/winsup/cygserver ChangeLog Makefile.in bsd ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2008-02-06 22:01:30 Modified files: winsup/cygserver: ChangeLog Makefile.in bsd_log.cc sysv_sem.cc Log message: Remove dependency from Cygwin internal code. * Makefile.in (CYGWIN_OBJS): Remove smallprint.o. (cygserver.exe): Remove strfuncs.o (strfuncs.o): Drop rule. * bsd_log.cc (_vlog): Use snprintf/vsnprintf instead of __small_sprintf/__small_vsprintf. * sysv_sem.cc (seminit): Use sys_malloc instead of malloc. Use snprintf instead of __small_sprintf. (semunload): Free the above allocated sema_mtx names here. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/ChangeLog.diff?cvsroot=srcr1=1.60r2=1.61 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/Makefile.in.diff?cvsroot=srcr1=1.17r2=1.18 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/bsd_log.cc.diff?cvsroot=srcr1=1.3r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/sysv_sem.cc.diff?cvsroot=srcr1=1.8r2=1.9
src/winsup/cygwin ChangeLog miscfuncs.cc strfu ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2008-02-06 22:04:16 Modified files: winsup/cygwin : ChangeLog miscfuncs.cc strfuncs.cc Log message: * miscfuncs.cc (next_char): Fix typos in comment. * strfuncs.cc: Remove cygserver guards. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.4000r2=1.4001 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/miscfuncs.cc.diff?cvsroot=srcr1=1.47r2=1.48 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/strfuncs.cc.diff?cvsroot=srcr1=1.7r2=1.8
src/winsup/cygserver ChangeLog bsd_helper.cc b ...
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2008-02-06 22:30:38 Modified files: winsup/cygserver: ChangeLog bsd_helper.cc bsd_mutex.cc sysv_sem.cc Log message: * bsd_helper.cc: Replace %E __small_printf format specifier with %lu and call to GetLastError throughout. * bsd_mutex.cc: Ditto. * sysv_sem.cc (semget): Replace %X __small_printf format specifier with %llx. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/ChangeLog.diff?cvsroot=srcr1=1.61r2=1.62 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/bsd_helper.cc.diff?cvsroot=srcr1=1.9r2=1.10 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/bsd_mutex.cc.diff?cvsroot=srcr1=1.15r2=1.16 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygserver/sysv_sem.cc.diff?cvsroot=srcr1=1.9r2=1.10
Re: [patch] fix strfuncs-related breakage of cygserver
On Feb 6 23:10, Corinna Vinschen wrote: Hi Brian, On Feb 4 13:10, Corinna Vinschen wrote: On Feb 3 19:37, Brian Dessent wrote: Attached are two patches, one for cygwin/ and one in cygserver/. Thanks, applied. On second thought it occured to me that there's no good reason that cygserver shouldn't use standard C functions instead of the internal __small_printf stuff, given that it is linked against Cygwin anyway. So what I did was to remove every trace of dependency to Cygwin sources, except for the version information. I'd be grateful if you could have a sanitizing look. Maybe I missed something. Of course I forgot something. I forgot to replace special small_printf format specifiers with standard printf specifiers. I hope that's fixed now. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat
Re: Memory leak problem reported with gfortran
On Feb 5 17:23, Jerry DeLisle wrote: Corinna Vinschen wrote: On Feb 4 17:24, Christopher Faylor wrote: On Mon, Feb 04, 2008 at 01:25:27PM -0800, Jerry DeLisle wrote: The test also appears very clean on Linux. The gfortran library is implemented in C. I need to examine some dumps from the compiler and I will get back with you off list if I don't spot the problem. I am fairly certain that Corinna would want to keep any correspondence on-list. Yup, that's right. OK, we have isolated the problem now. Confirming its in the libgfortran. The reason we did not see it on Linux is because we just did not run out of memory yet and when the test program completes, it does actually free what was allocated. We are failing to reuse an already allocated block so we were allocating a new one for every single WRITE to the string. Thanks for all your help. Thanks for letting us know. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
RE: Setup.exe 2.573.2.2 unable to retrieve mirror list and setup.ini/setup.bz2
Thank you for all the replies. The problem was a firewall setting. Better debug output in the log would have helped to track it down myself. Marek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Chicares Sent: Dienstag, 5. Februar 2008 15:49 To: cygwin@cygwin.com Subject: Re: Setup.exe 2.573.2.2 unable to retrieve mirror list and setup.ini/setup.bz2 On 2008-02-05 14:16Z, Marek.Jawurek wrote: [reformatted] On 2008-02-05 13:58Z, Igor Peshansky wrote: Can you retrieve the contents of the above URL using your browser (IE, in particular)? If not, first get that to work, and then try setup again. If you can, then there may be a problem with setup, since I see that you're using IE5 settings to connect. Another option is to try Direct connection. I can open the mirror list with IE. I tried both, using the IE settings and providing it with the proxy information myself in setup.exe. Does the proxy require password authentication? Is it possible that the firewall is specifically blocking setup.exe as in this http://cygwin.com/ml/cygwin/2004-03/msg01458.html message? -- 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/ -- 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/
This company is being noticed
PERT Continues to move. Steady and strong. With Mondays news release and More big News expected before weeks end. Now is still a good time to get in. Do your reasearch on this company and you will find what we have known for months. We first brought PERT to you back in OCT when it was at only .03 now we are moving past the 52 week high. With the new Pinks status and all the recent intrest in this company we would put this in our top 5 picks for the last 6 months. PERT is a real company with real intrest in thier product. Unlike many other marketed companies. We feel comfortable in where this company is heading. With the news of the US Navy's intrest. Many others are taking notice and making inquires to this company. As a service to you we hope you take the time to look at this company and decide for youself. We do not feel this will be a waste of your time. -- 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/
Re: CIFS symlinks on network share break Cygwin
On Feb 5 12:08, Jonathan Lanier wrote: And that gives me a totally crazy idea - wouldn't it be nice if there were a standardized, open set of extensions to allow Windows applications to access native symlinks, attributes, and permissions over remote network shares? If there were such a thing, Cygwin could totally use that to have seamless Unix-style integration with networks, as could other applications. If such a thing doesn't exist, it should. If the CIFS protocol already supports it, it should be exposed in the Windows OS. Who do I need to vote for to make this happen? :) It would sure be nice, but it's quite hard to get to. I'll ask on the samba developer list if there's interest to expose symlinks to Windows apps which know how to handle them. As for exposing the CIFS UNIX extensions to Windows, I guess you would have to ask Microsoft. I wouldn't know how to do that from the user space, nor would there be any Win32 or NT call to receive/transmit the UNIX specific data. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
Re: CIFS symlinks on network share break Cygwin
On Feb 5 20:24, Dave Korn wrote: On 05 February 2008 14:27, Corinna Vinschen wrote: you didn't answer my first question. What exactly happens with the perms? To what values are they set when creating a file? Oops, pardon. I thought I had posted this yesterday but now I see it's just lying around my drafts folder. My win32 T: drive is a netapp share (CIFS with NFS perms) and /win/t is a mountpoint to it (system, binmode, noexec) that I use as shorthand for /cygdrive notation. /win/t/netapp $ ls -la total 0 drwxr-xr-x 1 dk Domain Users 0 Feb 4 15:23 . drwxr-xr-x 1 dk Domain Users 0 Jan 1 1970 .. /win/t/netapp $ echo $CYGWIN ntsec smbntsec notty error_start=C:\cygwin\usr\local\bin\insight.exe /win/t/netapp $ touch foo.bar /win/t/netapp $ ls -la total 0 drwxr-xr-x 1 dk Domain Users 0 Feb 4 15:23 . drwxr-xr-x 1 dk Domain Users 0 Jan 1 1970 .. -rw-r--r-- 1 dk Domain Users 0 Feb 4 15:23 foo.bar /win/t/netapp $ chmod a+rwx foo.bar /win/t/netapp $ ls -la total 0 drwxr-xr-x 1 dk Domain Users 0 Feb 4 15:23 . drwxr-xr-x 1 dk Domain Users 0 Jan 1 1970 .. -rw-r--r-- 1 dk Domain Users 0 Feb 4 15:23 foo.bar /win/t/netapp $ If you run strace on chmod with smbntsec on, do you see error messages from inside the security.cc sources (get_nt_object_security, get_info_from_sd, etc)? If so, I'd be interested to see them, even if it's just out of curiosity. So, can't chmod easily. Umask appears at first glance to be respected when creating files: No, don't let umask blind you ;) What you see is what Cygwin does. The umask is taken into account when faking file permissions on file systems not being capable of retrieving the data by using Windows' file security API. You will see the same on FAT, for instance. and a programmer is caring (or paid) enough to actually do it. I'd do it just so that I don't have to go to explorer all the time. Cool. [*] - not even nearly, actually, but anyway it's /one/ of those explorer shell extension IXxxxXx interfaces. Sigh. What happened to the good old, clear and simple plain C API? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
Compiling link-grammar4.3 in Cygwin,cannot find jni.h header
Hi all I am trying to compile link grammar version 4.3.2(c code) from cygwin through the command ./configure. All works fine with a series of statement untill the last statement comes as checking for jni.h... configure: error: cannot find jni.h header, needed for Java bindings support. Do i have to set environment variable JAVA_HOME currently its set as C:\Program Files\Java\jdk1.5.0_03 even i tried C:\Program Files\Java\jdk1.5.0_03\include (include contains jni.h file),but still the same problem. Can anybody help me here? -- View this message in context: http://www.nabble.com/Compiling-link-grammar4.3-in-Cygwin%2Ccannot-find-jni.h-header-tp15306498p15306498.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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/
RE: Cygwin Wikia and FAQ
-Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Christopher Faylor Enviado el: martes, 05 de febrero de 2008 15:28 Para: cygwin@cygwin.com Asunto: Re: Cygwin Wikia and FAQ On Tue, Feb 05, 2008 at 03:14:27PM +0100, Pedro Macan?s wrote: Yes, I know it. But I want the FAQ in a free way (in the same way the Cygwin software is, this is GNU) The FAQ is already free, as in GNU. and easily updatable in the wiki, with new questions and answers. So, there is no problem to include it in Cygwin Wikia. I am going to copy it to the Wikia and include a link in the Main Page and sidebar. Good for you. That wasn't the point however, and we're not going to advocate that users avail themselves of unofficial documentation at another site. The last thing we need is YA site advocating non-standard ways of doing things. We already know that this confuses users. Remember this is freedom. But one can publish official and unofficial FAQ. If/when we want to put the FAQ in a wiki we'll use the software available at sourceware.org, not at some other site which isn't controlled by the people running the project. This can also happen with a email list. And with the work in GPL (one can add features or packages). But in any case, I prefer the official version. Regards -- 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/
Can not log in to recently enabled/configured sshd service
I have a pretty vanilla Cygwin installation on a Windows 2003 Server (SP1) system. Yesterday, I tried to enable the sshd service by running the ssh-host-config script. Everything appeared to work fine and I let the script create the two recommended user accounts. I was also able to start the sshd service successfully. However, I can not log in to the system. With the minimal /etc/passwd file, when I try to log in via ssh using a user that is not in the /etc/passwd file, it will not take my password at all (that's to be expected). I then added my account (as well as all the other accounts in our Windows domain) to the /etc/passwd file by running the following command: mkpasswd -l -d /etc/passwd Now when I try to log in I get immediately disconnected as shown in this debug output output: # ssh -v [EMAIL PROTECTED] OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /home/av16209/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to gandalf [139.68.133.49] port 22. debug1: Connection established. debug1: identity file /home/av16209/.ssh/identity type 0 debug1: identity file /home/av16209/.ssh/id_rsa type 1 debug1: identity file /home/av16209/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7 debug1: match: OpenSSH_4.7 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.9p1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-cbc hmac-md5 none debug1: kex: client-server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'gandalf' is known and matches the RSA host key. debug1: Found key in /home/av16209/.ssh/known_hosts:101 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /home/av16209/.ssh/id_rsa Connection closed by 139.68.133.49 The home directory defined in the Cygwin /etc/passwd file is // nasbox/av16209 which is the same home directory used on the Linux system that I initiated the ssh connection from (only there it's mounted as /home/av16209). I have got passwordless ssh access working from all my Linux systems, so that part is set up correctly. Any ideas as to why this is failing on the Cygwin side? Thanks, Alfred -- 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/
RE: Can not log in to recently enabled/configured sshd service
On 06 February 2008 14:41, Alfred von Campe wrote: debug1: Host 'gandalf' is known and matches the RSA host key. debug1: Found key in /home/av16209/.ssh/known_hosts:101 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /home/av16209/.ssh/id_rsa Connection closed by 139.68.133.49 The home directory defined in the Cygwin /etc/passwd file is // nasbox/av16209 which is the same home directory used on the Linux system that I initiated the ssh connection from (only there it's mounted as /home/av16209). I have got passwordless ssh access working from all my Linux systems, so that part is set up correctly. Any ideas as to why this is failing on the Cygwin side? How do the perms on /home/av16209/.ssh/* look? How do they look with CYGWIN=smbntsec? sshd is very strict about not allowing logins if the key files have loose perms. cheers, DaveK -- Can't think of a witty .sigline today -- 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/
Re: Can not log in to recently enabled/configured sshd service
I have had similar thing happen to me before. Please try stop and start the CYGWIN sshd service in Windows, try again. If that works, then we might be having the same problem. I forgot what I did exactly. Looking at my current setup, it seems that the TCP/IP Protocol Driver is added in sshd's dependency list. -- Wei On Wed, Feb 6, 2008 at 9:41 AM, Alfred von Campe [EMAIL PROTECTED] wrote: I have a pretty vanilla Cygwin installation on a Windows 2003 Server (SP1) system. Yesterday, I tried to enable the sshd service by running the ssh-host-config script. Everything appeared to work fine and I let the script create the two recommended user accounts. I was also able to start the sshd service successfully. However, I can not log in to the system. With the minimal /etc/passwd file, when I try to log in via ssh using a user that is not in the /etc/passwd file, it will not take my password at all (that's to be expected). I then added my account (as well as all the other accounts in our Windows domain) to the /etc/passwd file by running the following command: mkpasswd -l -d /etc/passwd Now when I try to log in I get immediately disconnected as shown in this debug output output: # ssh -v [EMAIL PROTECTED] OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /home/av16209/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to gandalf [139.68.133.49] port 22. debug1: Connection established. debug1: identity file /home/av16209/.ssh/identity type 0 debug1: identity file /home/av16209/.ssh/id_rsa type 1 debug1: identity file /home/av16209/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7 debug1: match: OpenSSH_4.7 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.9p1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-cbc hmac-md5 none debug1: kex: client-server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'gandalf' is known and matches the RSA host key. debug1: Found key in /home/av16209/.ssh/known_hosts:101 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /home/av16209/.ssh/id_rsa Connection closed by 139.68.133.49 The home directory defined in the Cygwin /etc/passwd file is // nasbox/av16209 which is the same home directory used on the Linux system that I initiated the ssh connection from (only there it's mounted as /home/av16209). I have got passwordless ssh access working from all my Linux systems, so that part is set up correctly. Any ideas as to why this is failing on the Cygwin side? Thanks, Alfred -- 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/ -- 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/
RE: problem with setup
Ugh, top-posting... Reformatted. On Wed, 6 Feb 2008, Pedro Macanás wrote: -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Morgan gangwere Enviado el: miércoles, 06 de febrero de 2008 6:08 Para: [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. Asunto: Re: problem with setup *cough* just a thought... but cant you simply as administrator or some other form of admin simply kill your cygwin isntall directory and remove the Cygwin registry keys? I think there would be an uninstall icon for Cygwin (i.e. I would like to reinstall it and all the configuration files and registry modifications). Well, Cygwin setup is an open-source project, and it should be relatively easy to add one more action (uninstall) to it. Would you care to submit a patch? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- 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/
Re: Can not log in to recently enabled/configured sshd service
On Feb 6, 2008, at 9:55, Dave Korn wrote: How do the perms on /home/av16209/.ssh/* look? How do they look with CYGWIN=smbntsec? Interesting. I had CYGWIN set to binmode tty ntsec according to some instructions I found by googling. Here are the relevant results: bash-3.2$ CYGWIN=ntsec /bin/ls -ld ~/.ssh drwxr-xr-x 1 av16209 Domain Users 0 Feb 6 09:28 //solid/av16209/.ssh bash-3.2$ CYGWIN=smbntsec /bin/ls -ld ~/.ssh drwx--+ 1 av16209 Domain Users 0 Feb 6 09:28 //solid/ av16209/.ssh So it appears that CYGWIN=smbntsec is what I want. How can I reconfigure the sshd service to use that setting? Alfred -- 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/
Re: Can not log in to recently enabled/configured sshd service
Alfred von Campe wrote: On Feb 6, 2008, at 9:55, Dave Korn wrote: How do the perms on /home/av16209/.ssh/* look? How do they look with CYGWIN=smbntsec? Interesting. I had CYGWIN set to binmode tty ntsec according to some instructions I found by googling. Here are the relevant results: bash-3.2$ CYGWIN=ntsec /bin/ls -ld ~/.ssh drwxr-xr-x 1 av16209 Domain Users 0 Feb 6 09:28 //solid/av16209/.ssh bash-3.2$ CYGWIN=smbntsec /bin/ls -ld ~/.ssh drwx--+ 1 av16209 Domain Users 0 Feb 6 09:28 //solid/av16209/.ssh So it appears that CYGWIN=smbntsec is what I want. How can I reconfigure the sshd service to use that setting? If you want this enabled indelibly just for the sshd service and you don't want to go skulking around in the registry, you can re-run ssh-host-config and specify 'smbntsec' as one of the settings when it asks you what you want for the service. This is a good thing to do because it allows you to be specific about the settings each service gets. Otherwise, if you want the setting globally, just set it in the CYGWIN environment variable and restart all Cygwin services. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
Re: Updated: clisp-2.44-1 for cygwin
Reini Urban wrote: I've released the new upstream clisp-2.44 plus subpackages -clx, -gtk2 and -gdi for cygwin. Release focus: 7 - Major bugfixes ./configure --fsstnd=redhat --with-dynamic-ffi \ --with-module=rawsock --with-module=dirkey \ --with-module=bindings/win32 --with-module=berkeley-db \ --with-module=pcre --with-module=postgresql \ --with-module=fastcgi --with-module=zlib \ --with-module=gdbm --with-module=libsvm \ --prefix=/usr --build build (no changes) http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/NEWS 2.44 (2008-02-02) = User visible changes * CLISP does not come with GNU libffcall anymore. This is now a separate package and should be installed separately. Pass --with-libffcall-prefix to the top-level configure if it is not installed in a standard place. Option --with-dynamic-ffi is now replaced with --with-ffcall. There appears to be a contradiction between the Cygwin announcement and the upstream clisp announcement. The upstream announcement states that the configuration option '--with-dynamic-ffi' has been replaced by the option '--with-ffcall', but the Cygwin announcement states that the no-longer-supported '--with-dynamic-ffi' configuration option was used. Does the Cygwin announcement merely contain a typo (i.e., the new option was, in fact, used, but not described correctly), or was the Cygwin clisp package configured incorrectly, using the old option? If it is the latter, then this might explain the fact that 'cygcheck' reports that it cannot find 'cygfcgi-0.dll' for /lib/clisp-[version]/full/lisp.exe (where [version] is either 2.43 or 2.44). -- 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/
Re: Can not log in to recently enabled/configured sshd service
If you want this enabled indelibly just for the sshd service and you don't want to go skulking around in the registry, you can re-run ssh-host- config and specify 'smbntsec' as one of the settings when it asks you what you want for the service. This is a good thing to do because it allows you to be specific about the settings each service gets. Otherwise, if you want the setting globally, just set it in the CYGWIN environment variable and restart all Cygwin services. I'm getting really strange behavior now from the Cygwin sshd service. I'm going to completely redo the Cygwin installation by following these steps: 1. Stop all services (I believe I only have sshd) 2. Remove all services 3. Remove Cygwin directory 4. Remove all Cygwin Registry keys 5. Reinstall Cygwin 6. Rerun ssh-host-config Is there anything I should pay close attention to when I go through this reinstallation/reconfiguration process? Alfred -- 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/
GCJ support for Java 1.5
Hello, I have a question I haven't seen addressed in the FAQ and mailing lists. Specifically, are there plans for gcj under Cygwin to support Java 1.5 features such as generics? The gcj web page (http://www.gnu.org/software/gcc/java/) says Java 1.5 language support is available as of gcc v4.3, but Cygwin is up to only v3.4 of gcc. I have tried a few workarounds, all unsuccessfully: * Use the Java 1.5 compiler to compile the Java to bytecode, then use gcj to compile the bytecode: doesn't work because of new Java system calls (such as System.nanoTime). * Use the Java 1.5 compiler to produce bytecode for an earlier release of Java (say 1.2), then use gcj to compile the bytecode: doesn't work because if you're going to produce 1.2 bytecode, you have to be compiling 1.2 source. * Use the Java 1.5 rt.jar as the boot class library for gcj: causes gcj to quit with a cryptic error about memory size (which I haven't investigated further). One thing I haven't tried is to download and compile gcc v4.3 from source. Otherwise it looks like my best bet is to wait until gcj can compile Java 1.5, and implement things a different way (e.g. using JNI) for now. Or is there a better way? Thanks, Sol Ezekiel -- 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/
Re: GCJ support for Java 1.5
Solly Ezekiel wrote: I have a question I haven't seen addressed in the FAQ and mailing lists. Specifically, are there plans for gcj under Cygwin to support Java 1.5 features such as generics? The gcj web page (http://www.gnu.org/software/gcc/java/) says Java 1.5 language support is available as of gcc v4.3, but Cygwin is up to only v3.4 of gcc. [snip] As you already know, the answer is no, not with the gcc version currently distributed with Cygwin. There are 2 available options, the first is free, the second is not (includes SWT and other stuff), both are MingW versions of gcc 4.3 : http://www.thisiscool.com/gcc_mingw.htm http://jnc.mtsystems.ch/ Hope this is useful. -- René Berber -- 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/
Re: CIFS symlinks on network share break Cygwin
On Feb 6 11:13, Corinna Vinschen wrote: On Feb 5 12:08, Jonathan Lanier wrote: And that gives me a totally crazy idea - wouldn't it be nice if there were a standardized, open set of extensions to allow Windows applications to access native symlinks, attributes, and permissions over remote network shares? If there were such a thing, Cygwin could totally use that to have seamless Unix-style integration with networks, as could other applications. If such a thing doesn't exist, it should. If the CIFS protocol already supports it, it should be exposed in the Windows OS. Who do I need to vote for to make this happen? :) It would sure be nice, but it's quite hard to get to. I'll ask on the samba developer list if there's interest to expose symlinks to Windows apps which know how to handle them. For those of you interested what's going on, I started a discussion on the samba-technical mailing list. I proposed to use Extended Attributes, because AFAICS, it's the most simple and most transparent way to handle symlinks. http://lists.samba.org/archive/samba-technical/2008-February/057818.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
Re: Creating user in Documents and Settings on all networked machines
bootleg86 bootleg86 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would it be possible to create a user folder in Documents and Settings even if I have not logged on to the machine It depends on what you mean by not logged on to the machine: -Do you mean ...not logged on to the machine ever, as any user, or ...not logged onto that machine as that particular user? -Do you mean not logged into the local console (desktop) of that machine, or do you mean not logged on over the network to access the C$ shared network folder? -- 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/
Re: CIFS symlinks on network share break Cygwin
Dave Korn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Oops, pardon. I thought I had posted this yesterday but now I see it's just lying around my drafts folder. My win32 T: drive is a netapp share (CIFS with NFS perms) and /win/t is a mountpoint to it (system, binmode, noexec) that I use as shorthand for /cygdrive notation. /win/t/netapp $ chmod a+rwx foo.bar /win/t/netapp $ ls -la total 0 drwxr-xr-x 1 dk Domain Users 0 Feb 4 15:23 . drwxr-xr-x 1 dk Domain Users 0 Jan 1 1970 .. -rw-r--r-- 1 dk Domain Users 0 Feb 4 15:23 foo.bar /win/t/netapp $ So, can't chmod easily. Umask appears at first glance to be respected when creating files: I'm assuming you mean T: maps to a CIFS share that points to a volume or QTree that is configured with the UNIX security model. If that is the case, NetApp will not allow you to change file permissions. Configuring a volume or QTree to use the UNIX security model means that only NFS clients are allowed to change security permissions. If you want to be able to change permissions, you need to set the security model to either Mixed (both CIFS and NFS can change permissions) or NTFS (CIFS can change permissions, NFS can't). Actually, as another poster mentioned, there is another option. NetApp provides a special Windows Explorer shell extension called SecureShare. This extension allows CIFS clients to change permissions on UNIX security model volumes and QTrees. If cygwin could hook into that mechanism, it could change permissions on UNIX security model volumes and QTrees. -- 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/
Re: cygwin processes listing on windows vista
Corinna Vinschen corinna-cygwin at cygwin.com writes: On Feb 4 16:41, Kurt Franke wrote: Hi, is there any possiblity to list the cygwin processes of all users when logged in as an user which is member of the Adminstrators group in windows vista ? Not in 1.5.x. The reason is the way global shared memory is handled begining with Windows 2003 Server. There is shared memory which has to be shared between all processes to allow access to process data from other processes. Since user applications running in sessions != 0 are not allowed to create global shared memory, these processes create their own shared memory which is only accessible within their own session. The result is that these processes are sort of decoupled from other Cygwin processes. I made a change in current CVS a while back which tries to access global shared memory first and only creates local shared memory if the global one doesn't already exist and the process has no rights to create global shared memory. However, this is also not quite foolproof. It should work fine if you start any Cygwin process with admin rights before starting any user processes, for instance, by installing cygserver as a service. Corinna Hi Corrina, there are runing some service processes started after boot ps listing from elevated admin session: meow2_~_505_# ps -ef UID PIDPPID TTY STIME COMMAND SYSTEM1348 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM 124 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM1664 1 ? 00:17:38 /usr/sbin/inetd SYSTEM1396 124 ? 00:17:38 /usr/sbin/cygserver SYSTEM 6641348 ? 00:17:38 /usr/sbin/cron SYSTEM 780 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM16921664 ? 00:17:39 /usr/sbin/inetd SYSTEM2196 1 ? 00:17:39 /usr/bin/cygrunsrv SYSTEM2172 780 con 00:17:39 /sbin/init SYSTEM2284 1 ? 00:17:39 /usr/bin/cygrunsrv SYSTEM23202196 ? 00:17:39 /usr/sbin/sshd SYSTEM24242284 ? 00:17:39 /usr/sbin/syslogd kf_s3684 1 con 00:19:20 /usr/bin/rxvt kf_s40883684 0 00:19:20 /usr/bin/bash kf_s5852 1 con 00:24:21 /usr/bin/rxvt kf_s47725852 1 00:24:21 /usr/bin/bash kf_s46644772 1 00:34:12 /usr/bin/ps meow2_~_506_# ps listing from non-elevated admin session: meow2_~_504_% ps -ef UID PIDPPID TTY STIME COMMAND kf_s3288 1 con 00:18:28 /usr/bin/rxvt kf_s40763288 0 00:18:37 /usr/bin/bash kf_s1872 1 0 00:21:19 /usr/bin/rxvt kf_s23121872 1 00:21:19 /usr/bin/bash kf_s47004076 0 00:31:19 /usr/bin/ps meow2_~_505_% ps listing from standard user session: meow2_~_145_% ps -ef UID PIDPPID TTY STIME COMMAND kf5204 1 con 00:23:51 /usr/bin/rxvt kf52805204 0 00:23:51 /usr/bin/bash kf4624 1 0 00:25:30 /usr/bin/rxvt kf46364624 1 00:25:30 /usr/bin/bash kf54844636 1 00:29:00 /usr/bin/telnet kf52725280 0 00:29:15 /usr/bin/ps meow2_~_146_% whether the standard user processes nor the non-elevated admin-user processes seems to attach to the shared memory section created by the service processes the user processes of the listing from the elevated admin-user processes are caused by 2 different window logins and both are attached to the shared memory section created by the service processes may be there a privelege problem with non-elevated processes when trying to attach to a shared memory section created by the service processes ? regards kf -- 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/
Re: cygwin processes listing on windows vista
On Thu, Feb 07, 2008 at 12:43:47AM +, Kurt Franke wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: On Feb 4 16:41, Kurt Franke wrote: Hi, is there any possiblity to list the cygwin processes of all users when logged in as an user which is member of the Adminstrators group in windows vista ? Not in 1.5.x. The reason is the way global shared memory is handled begining with Windows 2003 Server. There is shared memory which has to be shared between all processes to allow access to process data from other processes. Since user applications running in sessions != 0 are not allowed to create global shared memory, these processes create their own shared memory which is only accessible within their own session. The result is that these processes are sort of decoupled from other Cygwin processes. I made a change in current CVS a while back which tries to access global shared memory first and only creates local shared memory if the global one doesn't already exist and the process has no rights to create global shared memory. However, this is also not quite foolproof. It should work fine if you start any Cygwin process with admin rights before starting any user processes, for instance, by installing cygserver as a service. Corinna Hi Corrina, there are runing some service processes started after boot ps listing from elevated admin session: meow2_~_505_# ps -ef UID PIDPPID TTY STIME COMMAND SYSTEM1348 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM 124 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM1664 1 ? 00:17:38 /usr/sbin/inetd SYSTEM1396 124 ? 00:17:38 /usr/sbin/cygserver SYSTEM 6641348 ? 00:17:38 /usr/sbin/cron SYSTEM 780 1 ? 00:17:38 /usr/bin/cygrunsrv SYSTEM16921664 ? 00:17:39 /usr/sbin/inetd SYSTEM2196 1 ? 00:17:39 /usr/bin/cygrunsrv SYSTEM2172 780 con 00:17:39 /sbin/init SYSTEM2284 1 ? 00:17:39 /usr/bin/cygrunsrv SYSTEM23202196 ? 00:17:39 /usr/sbin/sshd SYSTEM24242284 ? 00:17:39 /usr/sbin/syslogd kf_s3684 1 con 00:19:20 /usr/bin/rxvt kf_s40883684 0 00:19:20 /usr/bin/bash kf_s5852 1 con 00:24:21 /usr/bin/rxvt kf_s47725852 1 00:24:21 /usr/bin/bash kf_s46644772 1 00:34:12 /usr/bin/ps meow2_~_506_# ps listing from non-elevated admin session: meow2_~_504_% ps -ef UID PIDPPID TTY STIME COMMAND kf_s3288 1 con 00:18:28 /usr/bin/rxvt kf_s40763288 0 00:18:37 /usr/bin/bash kf_s1872 1 0 00:21:19 /usr/bin/rxvt kf_s23121872 1 00:21:19 /usr/bin/bash kf_s47004076 0 00:31:19 /usr/bin/ps meow2_~_505_% ps listing from standard user session: meow2_~_145_% ps -ef UID PIDPPID TTY STIME COMMAND kf5204 1 con 00:23:51 /usr/bin/rxvt kf52805204 0 00:23:51 /usr/bin/bash kf4624 1 0 00:25:30 /usr/bin/rxvt kf46364624 1 00:25:30 /usr/bin/bash kf54844636 1 00:29:00 /usr/bin/telnet kf52725280 0 00:29:15 /usr/bin/ps meow2_~_146_% whether the standard user processes nor the non-elevated admin-user processes seems to attach to the shared memory section created by the service processes the user processes of the listing from the elevated admin-user processes are caused by 2 different window logins and both are attached to the shared memory section created by the service processes may be there a privelege problem with non-elevated processes when trying to attach to a shared memory section created by the service processes ? Are you running a snapshot: http://cygwin.com/snapshots/ ? That's what Corinna means by current CVS. cgf -- 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/
Re: Updated: clisp-2.44-1 for cygwin
Eric Blake schrieb: According to Larry Hall (Cygwin) on 2/5/2008 8:42 PM: | $ /usr/bin/clisp -norc -q -K full || echo $? | 53 | No such error is returned for the base set of modules for either version | 2.43-2 or 2.44-1: | | $ /usr/bin/clisp -q -norc -K base || echo $? | [1]_ | | Sounds like it could be a missing dependency problem. Does 'cygcheck | clisp' report any missing DLLs? Yep. Looking at the strace, -K full triggers the exec of /lib/clisp-2.44/full/lisp.exe, which complains: $ cygcheck /lib/clisp-2.44/full/lisp c:\cygwin\lib/clisp-2.44/full/lisp.exe ... Error: could not find cygpq5.dll Yet: $ cygcheck -p cygpq5 Found 0 matches for cygpq5. So, what is cygpq5.dll, and has it ever been in the distribution? At any rate, it looks like clisp needs to be rebuilt to either provide this dll or not link against it. Oh my! Sorry for that. I have explictly -lpq in my clisp full linker line, but my new postgresql-8.2 forward library /lib/libpq.a loads cygpq5.dll, not cygpq.dll. So I'll upload a new clisp-2.44-2 and fix my internal test packages for postgresql 8.2 and the new 8.3 to use the old name and do the dll versioning optional. 8.3 will be the new test postgresql package soon. -- Reini Urban -- 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/
Re: Updated: clisp-2.44-1 for cygwin
Mark Harig schrieb: Reini Urban wrote: I've released the new upstream clisp-2.44 plus subpackages -clx, -gtk2 and -gdi for cygwin. Release focus: 7 - Major bugfixes ./configure --fsstnd=redhat --with-dynamic-ffi \ --with-module=rawsock --with-module=dirkey \ --with-module=bindings/win32 --with-module=berkeley-db \ --with-module=pcre --with-module=postgresql \ --with-module=fastcgi --with-module=zlib \ --with-module=gdbm --with-module=libsvm \ --prefix=/usr --build build (no changes) http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/src/NEWS 2.44 (2008-02-02) = User visible changes * CLISP does not come with GNU libffcall anymore. This is now a separate package and should be installed separately. Pass --with-libffcall-prefix to the top-level configure if it is not installed in a standard place. Option --with-dynamic-ffi is now replaced with --with-ffcall. There appears to be a contradiction between the Cygwin announcement and the upstream clisp announcement. The upstream announcement states that the configuration option '--with-dynamic-ffi' has been replaced by the option '--with-ffcall', but the Cygwin announcement states that the no-longer-supported '--with-dynamic-ffi' configuration option was used. I couldn't get it with --with-ffcall to find the ffcall libs on my build machine, --with-dynamic-ffi works still fine. On my development laptop --with-ffcall worked okay. The end product is the same. Does the Cygwin announcement merely contain a typo (i.e., the new option was, in fact, used, but not described correctly), or was the Cygwin clisp package configured incorrectly, using the old option? If it is the latter, then this might explain the fact that 'cygcheck' reports that it cannot find 'cygfcgi-0.dll' for /lib/clisp-[version]/full/lisp.exe (where [version] is either 2.43 or 2.44). cygfcgi-0.dll should have been pulled in by libfcgi0 in the require line. Accidently I added ffcall and not libfcgi0 there. This is wrong. ffcall is just a build time requirement, not run-time. Linked statically. I've uploaded a fixed clisp setup.hint now. Temp. workaround: To work with clisp -K full you need to install fastcgi and install a temp. libpq5-8.2.5 I just uploaded now. Download and Reinstall clisp should work, until I up the release number to -2. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ -- 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/