public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: Steffen Sledz <sledz@zone42.org> To: cygwin-xfree@cygwin.com Subject: Re: CygwinX at MS Terminalserver? Date: Fri, 13 Aug 2010 08:23:00 -0000 [thread overview] Message-ID: <4C64F0A8.5020400@zone42.org> (raw) In-Reply-To: <4C641B91.60504@dronecode.org.uk> Am 12.08.2010 18:04, schrieb Jon TURNEY: > On 12/08/2010 08:31, Steffen Sledz wrote: >> Does anyone has experiences running CygwinX at an MS >> Terminalserver? We like to use it at one based on Windows >> Server 2003 with NTFS. >> >> Is it possible to run multiple XWin instances for multiple >> user sessions in parallel? >> >> Any suggestions how to setup the rights in /tmp, /var/log, >> /var/run, etc.? > > You shouldn't change the rights on any of these, as this could > affect the security or functioning of other cygwin apps. > > Fortunately, you shouldn't need to, as, provided each X server > instance has a unique display number, everything should work :-) This seems not to be right. :( Here are the results of my tests: testuser0001 starts an X server using the item "XWin Server" from the start menu. This results in the creation of some files/dirs with these rights. ------------>snip<---------------- $ ls -la /tmp /var/log /tmp: total 1 drwxrwxrwt+ 1 Administrator Administrators 0 Aug 13 08:55 . drwxr-xr-x+ 1 Administrator Administrators 0 May 17 15:51 .. -r--r--r-- 1 testuser0001 Domain Users 11 Aug 13 08:54 .X0-lock drwxrwxrwt+ 1 testuser0001 Domain Users 0 Aug 13 08:54 .X11-unix /var/log: total 2316 drwxrwxrwt+ 1 Administrator Administrators 0 Aug 13 08:54 . drwxr-xr-x+ 1 Administrator Administrators 0 May 17 16:21 .. -rw-r--r-- 1 Administrator Administrators 139786 Aug 13 08:48 setup.log -rw-r--r-- 1 Administrator Administrators 2219958 Aug 13 08:48 setup.log.full -rw-r--r-- 1 testuser0001 Domain Users 4447 Aug 13 08:54 XWin.0.log ------------>snap<---------------- Now testuser0002 tries to start another server in parallel. This gives this error: /usr/bin/startxwin: Resource temporarily unavailable (errno 11): Another X server instance is running on DISPLAY :0 Now testuser0001 stops his server by using the "Exit" item from the server menu. After this the files/dirs look like this. ------------>snip<---------------- $ ls -la /tmp /var/log /tmp: total 0 drwxrwxrwt+ 1 Administrator Administrators 0 Aug 13 08:58 . drwxr-xr-x+ 1 Administrator Administrators 0 May 17 15:51 .. drwxrwxrwt+ 1 testuser0001 Domain Users 0 Aug 13 08:58 .X11-unix /var/log: total 2316 drwxrwxrwt+ 1 Administrator Administrators 0 Aug 13 08:54 . drwxr-xr-x+ 1 Administrator Administrators 0 May 17 16:21 .. -rw-r--r-- 1 Administrator Administrators 139786 Aug 13 08:48 setup.log -rw-r--r-- 1 Administrator Administrators 2219958 Aug 13 08:48 setup.log.full -rw-r--r-- 1 testuser0001 Domain Users 4871 Aug 13 08:58 XWin.0.log ------------>snap<---------------- Now testuser0002 tries to start a server. This results in an error popup: ------------>snip<---------------- A fatal error has occured and Cygwin/X will now exit. Cannot open log file "/var/log/XWin.0.log" Please open /var/log/XWin.%s.log for more information. Vendor: The Cygwin/X Project Release: 1.8.2.0 (10802000) Contact: cygwin-xfree@cygwin.com Build Date: 2010-08-06 XWin was started with the following command-line: X :0 -multiwindow ------------>snap<---------------- > Where you may experience problems is if the X server crashes > whilst being run by an Administrator, and then a non-Adminstrator > user tries to run X server using the same display number, which > will fail due being unable to remove the stale lock file and unix > socket. Unfortunately, there is no obvious way to fix that > without introducing a security hole (not that it is known to be > secure anyhow) I think that's not the problem in this case. Steffen -- 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/
next prev parent reply other threads:[~2010-08-13 7:13 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-12 7:31 Steffen Sledz 2010-08-12 16:07 ` Jon TURNEY 2010-08-13 8:23 ` Steffen Sledz [this message] 2010-08-13 10:39 ` Hermann-Josef Beckers 2010-08-13 11:15 ` Jon TURNEY 2010-08-16 10:14 ` Steffen Sledz 2010-08-27 16:32 ` Jon TURNEY 2010-09-20 14:21 ` Jon TURNEY 2010-09-20 14:26 ` [PATCH] os: Add -displayfd option Jon TURNEY 2010-09-20 14:27 ` [PATCH] Handle X server -displayfd option transparently Jon TURNEY 2010-08-13 21:07 ` CygwinX at MS Terminalserver? Kurt Franke
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4C64F0A8.5020400@zone42.org \ --to=sledz@zone42.org \ --cc=cygwin-xfree@cygwin.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).