Subject: Re: anyone knowledgeable enough pls help!

2000-07-18 Thread Joseph de los Santos
Hi Pavel,

  Thank you. I would really appreciate it if you can send me your
programs... if you don't mind that is :)



Pavel M. Penev [EMAIL PROTECTED] wrote:
cut
This here is absolutely wrong. The X11 system uses its own signals,
transported via TCP/IP. Clicking File-Quit is just like clicking any
other button. Netscape is responsible for handling the event, and it has
no reason to kill its parent if run by a system()-like function, or run by
exec*() function it will have its own signal-handling table. I have
written two small programmes (one for GTK, and one to call it and trap
signals). I can send them if you wish.





Re: Subject: Re: anyone knowledgeable enough pls help!

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Joseph de los Santos wrote:

 Hi Pavel,
 
   Thank you. I would really appreciate it if you can send me your
 programs... if you don't mind that is :)
 
 
 
 Pavel M. Penev [EMAIL PROTECTED] wrote:
 cut
 This here is absolutely wrong. The X11 system uses its own signals,
 transported via TCP/IP. Clicking File-Quit is just like clicking any
 other button. Netscape is responsible for handling the event, and it has
 no reason to kill its parent if run by a system()-like function, or run by
 exec*() function it will have its own signal-handling table. I have
 written two small programmes (one for GTK, and one to call it and trap
 signals). I can send them if you wish.
 
 
 
 

Have you still not received the tarball?!

Regards,
Pavel




Re: anyone knowledgeable enough pls help! (fwd)

2000-07-18 Thread Pavel M. Penev


Subject: Re: anyone knowledgeable enough pls help!



On Mon, 17 Jul 2000, Ron Rademaker wrote:

 On Mon, 17 Jul 2000, Pavel M. Penev wrote:
 
  
  
  On Mon, 17 Jul 2000, Ron Rademaker wrote:
  
   For the starting of x-windows, I guess you could but startx in .login in
   the users home-dir.
   The netscape part it quite a bit more difficult ( I guess you can start it
   using .Xsession or something, but you'll have to check the docs of that
   for more info), the closing part, here the idea I got on that ( I can't
   provide it to you because I'm not good at c):
   
   Create a c-program that starts netscape and include signal.h that
   intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for
   a password (netscape will be closed at that moment), if the
   password is correct, the program is terminated and netscape isn't running
   anymore, if the password is incorrect, netscape is restarted. 
   
   Perhaps this can be of any help.
   
   Ron Rademaker
  
  
  This here is absolutely wrong. The X11 system uses its own signals,
  transported via TCP/IP. Clicking File-Quit is just like clicking any
  other button. Netscape is responsible for handling the event, and it has
  no reason to kill its parent if run by a system()-like function, or run by
  exec*() function it will have its own signal-handling table. I have
  written two small programmes (one for GTK, and one to call it and trap
  signals). I can send them if you wish.
 
 Didn't know that... I would like to take a look at those programmes,
 thank.
 
 Ron Rademaker
 
 


Here you are the sources,
Pavel


3.tgz
Description: Here they are.


anyone knowledgeable enough pls help!

2000-07-17 Thread Joseph de los Santos
I'm going out of my mind

when a user logs in a terminal this is what will happen:
 -automatically starts x-window, all keybindings and or hotkeys will be
disabled, run netscape and it can't be closed without asking for the user's
password. Can a script be used for this? and anyone kind enough to show me?
Also, Maybe this can be done by adding/modifying xmodmap in the user's
.xinitrc? if so, how? any help with be greatly appreciated.

btw, what's the difference between keycodes and keysyms?

Thanks in advance :)





Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Andre Berger
Joseph de los Santos [EMAIL PROTECTED] writes:

 I'm going out of my mind
 
 when a user logs in a terminal this is what will happen:
  -automatically starts x-window, all keybindings and or hotkeys will be
 disabled, run netscape and it can't be closed without asking for the user's
 password. Can a script be used for this? and anyone kind enough to show me?
 Also, Maybe this can be done by adding/modifying xmodmap in the user's
 .xinitrc? if so, how? any help with be greatly appreciated.

Dont' stick to the Leave on password thing; make different accounts
for the Kiosk- and normal users.
The people who told you about the loop already gave you the
solution for Kiosk mode users. The warnings about MIME (Java/
JavaScript/ Stylesheets) in Netscape are serious! 

If you want a more complicated and, as the whole thing runs as root,
different approach, see the Kiosk (or was it Kiosk-Mode?)-HOWTO with
detailled instructions. You will get the idea there. Another way: 

- run the loop as user
- set the kiosk user's shell not to a real shell
- don't use a window manager for the kiosk user
- Hotkeys and so on are usually disabled in XF86Config's server flag
section. Don't enable DontZap, you will never be happy
without because Netscape is _far_ from stable.
- use xdm and write the account name and password into its greeting
msg so that any anonymous user can restart Netscape on his/her own
- Write useful key combinations (CTRL ALT BS, ALT F7) onto the
monitor...
- Secure the user Netscape's preferences and bookmarks (root.kiosk
640, YMMV)
- Don't forget to set up a part of the loop that removes all files
that don't belong to Netscape, and Netscape's lock file (see the Kiosk
HOWTO). 
- if you want them to be able to save pages to floppies, use autofs

The whole thing will _definitely_ compromize security.

 btw, what's the difference between keycodes and keysyms?

Can't help you in this respect.

HTH
Andre
-- 
Andre Berger [EMAIL PROTECTED] from Bonn, Germany



Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Ron Rademaker
For the starting of x-windows, I guess you could but startx in .login in
the users home-dir.
The netscape part it quite a bit more difficult ( I guess you can start it
using .Xsession or something, but you'll have to check the docs of that
for more info), the closing part, here the idea I got on that ( I can't
provide it to you because I'm not good at c):

Create a c-program that starts netscape and include signal.h that
intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for
a password (netscape will be closed at that moment), if the
password is correct, the program is terminated and netscape isn't running
anymore, if the password is incorrect, netscape is restarted. 

Perhaps this can be of any help.

Ron Rademaker



On Mon, 17 Jul 2000, Joseph de los Santos wrote:

 I'm going out of my mind
 
 when a user logs in a terminal this is what will happen:
  -automatically starts x-window, all keybindings and or hotkeys will be
 disabled, run netscape and it can't be closed without asking for the user's
 password. Can a script be used for this? and anyone kind enough to show me?
 Also, Maybe this can be done by adding/modifying xmodmap in the user's
 .xinitrc? if so, how? any help with be greatly appreciated.
 
 btw, what's the difference between keycodes and keysyms?
 
 Thanks in advance :)
 
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 



Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Joseph de los Santos wrote:

 I'm going out of my mind
 
 when a user logs in a terminal this is what will happen:
  -automatically starts x-window, all keybindings and or hotkeys will be
 disabled, run netscape and it can't be closed without asking for the user's
 password. Can a script be used for this? and anyone kind enough to show me?
 Also, Maybe this can be done by adding/modifying xmodmap in the user's
 .xinitrc? if so, how? any help with be greatly appreciated.
 
 btw, what's the difference between keycodes and keysyms?
 
 Thanks in advance :)
 
I gues you already have enough good suggestions on the first two
issues. Now for the password. I think you could create a firewall that
would deny any X11 packets for closing netscape. Then you could add some
tool that would request a password, and if it finds it acceptable it would
change the firewall rules to permit netscape delete_event. You have a
severe problem. You would need to read tons of documentation (esp. if you
follow my suggestion). I would be curious to know if you succeed to solve
it (and mostly HOW?).

Sorry, I can't offer anything better,
Pavel M. Penev




Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Chris Gray
On Mon, Jul 17, 2000 at 01:23:05AM -0700, Joseph de los Santos wrote:
 
 btw, what's the difference between keycodes and keysyms?

The keycodes map between keys on the keyboard and numbers.  The function 
doesn't change if someone changes their key mapping with something like
xmodmap. 

Keysyms, on the other hand, map between keys (in the user's mind) and
numbers.

For example, on a non-remapped keyboard, the Control keycode is 
0x00E3 and Caps lock is 0x00E5.  Their keysyms are 0xFFE3 and 0xFFE5
respectively.  I like to switch my Control and Caps lock keys using
xmodmap.  The keycode of the key to the left of the 'A' key is still
0x00E5, but its keysym becomes 0xFFE3.  Similarly, the keycode of the
key 2 keys down is still 0x00E3 but its keysym is now 0xFFE5.

Confused yet?

Cheers,
Chris

-- 
pick, pack, pock, puck: like drops of water in a fountain falling
softly in the brimming bowl.



Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Ron Rademaker wrote:

 For the starting of x-windows, I guess you could but startx in .login in
 the users home-dir.
 The netscape part it quite a bit more difficult ( I guess you can start it
 using .Xsession or something, but you'll have to check the docs of that
 for more info), the closing part, here the idea I got on that ( I can't
 provide it to you because I'm not good at c):
 
 Create a c-program that starts netscape and include signal.h that
 intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for
 a password (netscape will be closed at that moment), if the
 password is correct, the program is terminated and netscape isn't running
 anymore, if the password is incorrect, netscape is restarted. 
 
 Perhaps this can be of any help.
 
 Ron Rademaker


This here is absolutely wrong. The X11 system uses its own signals,
transported via TCP/IP. Clicking File-Quit is just like clicking any
other button. Netscape is responsible for handling the event, and it has
no reason to kill its parent if run by a system()-like function, or run by
exec*() function it will have its own signal-handling table. I have
written two small programmes (one for GTK, and one to call it and trap
signals). I can send them if you wish.

 
 On Mon, 17 Jul 2000, Joseph de los Santos wrote:
 
  I'm going out of my mind
  
  when a user logs in a terminal this is what will happen:
   -automatically starts x-window, all keybindings and or hotkeys will be
  disabled, run netscape and it can't be closed without asking for the user's
  password. Can a script be used for this? and anyone kind enough to show me?
  Also, Maybe this can be done by adding/modifying xmodmap in the user's
  .xinitrc? if so, how? any help with be greatly appreciated.
  
  btw, what's the difference between keycodes and keysyms?
  
  Thanks in advance :)