[FreeNX-kNX] shadowing fails, Error: Authorization refused by user: sameuser.
Sabuj Pattanayek
sabujp at gmail.com
Tue Sep 27 17:11:08 UTC 2011
Hi,
I'm trying to get shadow sessions to work. But it always fails with
"Error: Authorization refused by user: sameuser", where sameuser is
me. First I create a regular session. Then I create a shadow session.
I get a prompt in my NX session that I (myself) want to open a shadow
session. I click yes, and it fails. Clicking the details button the
log shows the error mentioned (also included below). Clicking "no" to
refuse the shadow session does the same thing. I've used the sample
nxshadowacl file here:
http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_HowtoShadow
, chmod 755 the file, I've also used the file
/usr/share/doc/freenx-0.7.3/nxacl.sample and copied it to
/usr/bin/nxshadowacl and then chmod 755 the file but it still doesn't
work. I finally tried just making it "exit 0", but that doesn't work.
One thing I noticed is that the file doesn't actually seem to be run
at all. For example I put a "echo "nxshadowacl ran $1 $2 about to exit
0" > /tmp/nxshadowacl.log" in the file but the /tmp/nxshadowacl.log
file is never created after I try connecting, so I'm assuming that it
never actually runs. Here's the version of nx that the server is
running:
freenx-0.7.3-7.el5.centos
files in freenx:
freenx /etc/logrotate.d/nxserver
freenx /etc/nxserver
freenx /etc/nxserver/node.conf
freenx /etc/nxserver/node.conf.sample
freenx /etc/rc.d/init.d/freenx-server
freenx /usr/bin/nxcheckload
freenx /usr/bin/nxcups-gethost
freenx /usr/bin/nxdesktop_helper
freenx /usr/bin/nxdialog
freenx /usr/bin/nxkeygen
freenx /usr/bin/nxloadconfig
freenx /usr/bin/nxnode
freenx /usr/bin/nxnode-login
freenx /usr/bin/nxpasswd
freenx /usr/bin/nxprint
freenx /usr/bin/nxredir
freenx /usr/bin/nxserver
freenx /usr/bin/nxserver-helper
freenx /usr/bin/nxsetup
freenx /usr/bin/nxviewer_helper
freenx /usr/lib64/libnxredir.so.0
freenx /usr/share/doc/freenx-0.7.3
freenx /usr/share/doc/freenx-0.7.3/AUTHORS
freenx /usr/share/doc/freenx-0.7.3/CONTRIB
freenx /usr/share/doc/freenx-0.7.3/COPYING
freenx /usr/share/doc/freenx-0.7.3/ChangeLog
freenx /usr/share/doc/freenx-0.7.3/nxacl.sample
freenx /usr/share/doc/freenx-0.7.3/nxcheckload.sample
freenx /var/lib/nxserver
freenx /var/lib/nxserver/db
freenx /var/lib/nxserver/db/closed
freenx /var/lib/nxserver/db/failed
freenx /var/lib/nxserver/db/running
freenx /var/log/nx
I put nxshadowacl in /usr/bin/nxshadowacl
NX> 203 NXSSH running with pid: 25184
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: not.for.you.!!! on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)
NX> 105 hello NXCLIENT - Version 3.1.0
NX> 134 Accepted protocol: 3.1.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: sameuser
NX> 102 Password:
NX> 103 Welcome to: somemachine user: sameuser
NX> 105 listsession --type="shadow"
NX> 127 Sessions list of user '.*' for reconnect:
Display Type Session ID Options
Depth Screen Status Session Name
------- ---------------- -------------------------------- --------
----- -------------- ----------- ------------------------------
1000 unix-kde 4F6E1B2BF41B9730746A4BAB146ABA6E --D--PSA
24 4480x1055 Running somemachine (Shadowed)
0 Local 8856C86FF6B489385E8CE6348DA79F5A --------
Running X0 (Local)
NX> 148 Server capacity: not reached for user: .*
NX> 105 listsession --type="shadow"
NX> 127 Sessions list of user '.*' for reconnect:
Display Type Session ID Options
Depth Screen Status Session Name
------- ---------------- -------------------------------- --------
----- -------------- ----------- ------------------------------
1000 unix-kde 4F6E1B2BF41B9730746A4BAB146ABA6E --D--PSA
24 4480x1055 Running somemachine (Shadowed)
0 Local 14F5E30904C0C804AFDA5EC425EB3FF3 --------
Running X0 (Local)
NX> 148 Server capacity: not reached for user: .*
NX> 105 attachsession --link="modem" --backingstore="1"
--encryption="1" --cache="8M" --images="32M" --shmem="1" --shpix="1"
--strict="0" --composite="1" --media="0"
--session="somemachine-shadow" --type="shadow" --client="linux"
--keyboard="pc105/us" --id="4F6E1B2BF41B9730746A4BAB146ABA6E"
--display="1000" --geometry="4480x1055"
NX> 726 Asking user for authorization to attach to session
NX> 596 Error: Authorization refused by user: sameuser.
NX> 105 NX> 280 Exiting on signal: 15
I just happened to have a really old version of nxclient installed
which I've been lazy to upgrade, but I have tried the most recent 3.x
client version from nomachine and it fails with the same error.
Thanks,
Sabuj
More information about the FreeNX-kNX
mailing list