Re: vnc icewm and no permissions

2001-06-09 Thread Roderick Cummings





From: Roderick Cummings [EMAIL PROTECTED]
To: debian-user@lists.debian.org
Subject: vnc icewm and no permissions
Date: Fri, 08 Jun 2001 22:30:55 -0400

I was using vnc on a small box to run a gui program, but I have managed to
mangle it rather badly. Anyway, I got the idea to remove the menu's,
toolbars, etc in icewm so you can't open any programs while logged in via
xvncviewer. I did this my removing the menu package, and then going into
/usr/lib/menu, default and /etc/menu and removing them. Then I went into
/etc/X11/icewm and deleted the files menu, preferences, programs and
toolbar.

The idea was to make it harder for someone who has gotten into vnc, to get
to a shell, although I'm sure there are lots of things an X expert could 
do,

but at least someone would have to think a little before owning me.

And this worked fine for quite a while. But one day (today infact) I was
using the vnc session, and at some point noticed a way to right-click a
bring up an xterm. When I did this, it killed icewm, and left me with just 
a

xterm but no window manager, somekind of failsafe login, i think. So then I
found the file, /etc/menu-methodes/icewm. It had several lines mentioning
xterm, so I deleted the 3 lines:

x11=  prog \ $title \  ifempty($icon,-) ifnempty($icon,$icon)  
$command\n
 text=   prog \ $title\  ifempty($icon,-) ifnempty($icon,$icon) 
xterm -T \ $title \ -e  $command\n
 wm= restart \ $title\  ifempty($icon,-) ifnempty($icon,$icon)
  $command\n

I restarted vnc, and got nothing but the xterm, and no window manager. I've
--purged and reinstalled all of the packages, vnc, ice, xbase, xcommon, 
etc.

All of the files I edited or deleted seem to be back the way they were
before. However, when starting vnc, all I get is X(vnc), no window manager,
no xterm, nothing. I set icewm and other xprogs to start in ~/.xsession and
even in /etc/X11/xsession, and it has no effect. if I try to launch an app
from a commandline (by just ssh'ing into the box, I get connection refused
by server. Checking the xsession errors, anything I try to start up in
.xsession or /etc/X11/xsessiom, xintrc, etc and they all also exit with
connection refused by server.

Everything is running under the same login, and DISPLAY is set correctly,
etc, but I'm getting connection refused for everything. I even put an xhost
+ in xsession and it still doesn't make any difference.

What else can I look at? All of these files were purged and replaced, with
the same stable packages I had used when I originally installed everything.

Thanks.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact 
[EMAIL PROTECTED]






OK something odd is going on, now everything works fine when I login from 
work. But when I ssh from my home systems (the box in question is one of my 
homesystems) any xterms launched are not allowed access to the vnc X server. 
But when I ssh in from elsewhere it works fine. Before I screwed with 
things, it worked fine from home and elsewhere there have been no changes to 
my other homesystems.


Ah, correction, any of my homesystems NOT running X work correctly. From 
console only, without an X server running locally I can launch apps on to 
the vnc Xserver (DISPLAY is set right both ways). Is ssh causing a problem? 
There is a environmental variable called XAUTHORITY that points to a file in 
/tmp. Is this the source of the problem? But in either case, this was not a 
problem previously.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com



vnc icewm and no permissions

2001-06-08 Thread Roderick Cummings
I was using vnc on a small box to run a gui program, but I have managed to 
mangle it rather badly. Anyway, I got the idea to remove the menu's, 
toolbars, etc in icewm so you can't open any programs while logged in via 
xvncviewer. I did this my removing the menu package, and then going into 
/usr/lib/menu, default and /etc/menu and removing them. Then I went into 
/etc/X11/icewm and deleted the files menu, preferences, programs and 
toolbar.


The idea was to make it harder for someone who has gotten into vnc, to get 
to a shell, although I'm sure there are lots of things an X expert could do, 
but at least someone would have to think a little before owning me.


And this worked fine for quite a while. But one day (today infact) I was 
using the vnc session, and at some point noticed a way to right-click a 
bring up an xterm. When I did this, it killed icewm, and left me with just a 
xterm but no window manager, somekind of failsafe login, i think. So then I 
found the file, /etc/menu-methodes/icewm. It had several lines mentioning 
xterm, so I deleted the 3 lines:


x11=	  prog \ $title \  ifempty($icon,-) ifnempty($icon,$icon)   
$command\n
 text=   prog \ $title\  ifempty($icon,-) ifnempty($icon,$icon)   
xterm -T \ $title \ -e  $command\n
 wm= restart \ $title\  ifempty($icon,-) ifnempty($icon,$icon) 
  $command\n


I restarted vnc, and got nothing but the xterm, and no window manager. I've 
--purged and reinstalled all of the packages, vnc, ice, xbase, xcommon, etc. 
All of the files I edited or deleted seem to be back the way they were 
before. However, when starting vnc, all I get is X(vnc), no window manager, 
no xterm, nothing. I set icewm and other xprogs to start in ~/.xsession and 
even in /etc/X11/xsession, and it has no effect. if I try to launch an app 
from a commandline (by just ssh'ing into the box, I get connection refused 
by server. Checking the xsession errors, anything I try to start up in 
.xsession or /etc/X11/xsessiom, xintrc, etc and they all also exit with 
connection refused by server.


Everything is running under the same login, and DISPLAY is set correctly, 
etc, but I'm getting connection refused for everything. I even put an xhost 
+ in xsession and it still doesn't make any difference.


What else can I look at? All of these files were purged and replaced, with 
the same stable packages I had used when I originally installed everything.


Thanks.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com