<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Chris,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for the info.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’ve checked my configuration and I have the following options set in my node.conf file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">ENABLE_SESSION_SHADOWING_AUTHORIZATION=0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">ENABLE_INTERACTIVE_SESSION_SHADOWING=1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Permissions on my nxshadowacl file are :  -rwxr-xr-x   1 root root   143 May 22 19:55 nxshadowacl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The contents of my nxshadowacl is :
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#!/bin/sh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"># Deny all sessions to be shadowed by anyone besides the same user.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"># exit 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"># Allow all sessions to be shadowed by anyone.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">exit 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">As I just have exit 0 in my nxshadowacl, shadowing should work between any two users.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">When I shadow any session (same user as well other users) I get an error.  The error message is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Error: Aborting session with 'Server is already active for display XXXX<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">        If this server is no longer running, remove /tmp/.XXXXX-lock<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">        and start again'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Session: Aborting session at 'Tue May 28 10:15:57 2013'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Session: Session aborted at 'Tue May 28 10:15:57 2013'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m rather stumped as to what could be causing the problem.  Any other thoughts?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Any help much appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Len<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freenx-knx-bounces@kde.org [mailto:freenx-knx-bounces@kde.org]
<b>On Behalf Of </b>chris@ccburton.com<br>
<b>Sent:</b> 22 May 2013 18:10<br>
<b>To:</b> User Support for FreeNX Server and kNX Client<br>
<b>Subject:</b> Re: [FreeNX-kNX] Shadow Session fails to attach<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Ling-Yan Lau <<a href="mailto:ll220@medschl.cam.ac.uk">ll220@medschl.cam.ac.uk</a>></span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">
</span><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Sent by: <a href="mailto:freenx-knx-bounces@kde.org">
freenx-knx-bounces@kde.org</a></span> <o:p></o:p></p>
<p><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">22/05/2013 14:46</span>
<o:p></o:p></p>
<p style="margin-bottom:12.0pt"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Please respond to User Support for FreeNX Server and kNX Client <<a href="mailto:freenx-knx@kde.org">freenx-knx@kde.org</a>></span>
<br>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi everyone,</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I have a problem with my FreeNX server in that everything works find except I can’t get shadowing to work.</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">My setup is as follows:</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">[SNIP]</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Error: Aborting session with 'Cannot establish any listening sockets - Make sure an X server isn't already running'.</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I’m not sure what it is that I’ve missed or got wrong in my setup.  Can anyone help?</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Many thanks,</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Len</span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> <span style="color:red">[SNIP]</span></span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">NX> 101 User:<span style="color:blue"> cscs</span></span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">NX> 102 Password:
</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">NX> 103 Welcome to: me-promis user: cscs</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">NX> 105 listsession --type="shadow"</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">NX> 127 Sessions list of user '.*' for reconnect:</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span> <br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Display Type             Session ID                       Options  Depth Screen         Status      Session Name</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">2003    unix-gnome       1A756A55A57CDF54770F8B251B402EF2 --D--PSA    24 1914x1132      Running    <span style="color:blue"> me-promis (jd12345)</span> (Shadowed)</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"> </span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"> </span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">What did you set in :-</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">        nxshadowacl</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">???</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">Try shadowing the same user and see if that works, else let me know . . .</span>
<br>
<br>
<br>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">ref    node.conf</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"># General shadowing / mirroring notes:                                                                                                                                        </span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">#                                                                                                                                                                            
</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"># By default shadowing is only allowed for the same user.                                                                                                                    
</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">#                                                                                                                                                                            
</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"># If nxserver finds nxshadowacl binary, it asks it, for which users                                                                                                          
</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red"># the permission is granted.  </span>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>