one graphics terminal/many users

John Fwu/BTI john at ERIN.JSC.NASA.GOV
Fri Dec 21 03:49:11 AEST 1990


In article <1990Dec14.191848.26471 at cs.umn.edu>, slevy at geom.umn.edu
(Stuart Levy) writes:

>In article <18668 at hydra.gatech.EDU> gt3930c at prism.gatech.EDU (ZUCCOLA) writes:
>>... Is there anyway to "lockout" other users so that if they accidentally try
>> to start something "graphic" and they aren't the person using the machine
>>their process won't start?
>>
>>			Just thought I'd ask,
>>			H-----

>We have a half-baked way of dealing with this... I hope there's a better one.
>We modify our programs to test the $TERM variable.  If it's not "iris-ansi",
>the program is probably not being run locally, prints a warning message& quits.
>There's a conventional command-line option and environment variable
>(-c and "COLLABORATE", both mentioned by the warning message) which defeat the
>test -- it's not foolproof, just enough to prevent accidental interference.

>Naturally you must either have source to the program or be able to embed it
>in a shell script wrapper.  Definitely not ideal.

[...]

One weekend, I login to a SGI 4D/70GT from home, and accidentally trigger
'psview', that time a two days video job was going on the graphics console,
I quickly killed the 'psview' but the window frame stayed there until Monday
morning when someone came in and cleared it.  Instead of killing me, the lab
manager asked me to develop a mechanism to prevent disruption of workstations
when video recording is in progress.

After couple hours of research, I found out that
		"newshost remove `hostname` localhost"
will deny all 'winopen' request, and popup a window on console saying
		"Network security violation:"
		"Rejected connection from ..."
this message window was still bothering the graphics console, so I modified
/usr/NeWS/lib/NeWS/init.ps, changed the following lines:

                  currentcursorlocation
                   [ (Network security violation:)
                     (Rejected connection from ) OriginatingHost append ]
                  popmsg

to:

%                 currentcursorlocation
%                  [ (Network security violation:)
%                    (Rejected connection from ) OriginatingHost append ]
%                 popmsg

If some one can implement this in users' startup.ps or user.ps, please let me
know.  My solution will permanently disable the error message and needs super
user involvement for every major IRIX upgrade.

Good luck.
_________________________________________________________________________
|     Integrated Graphics Operations and Analysis Laboratory (IGOAL)    |\
------------------------------------------------------------------------- \
\ J. John Fwu                     \ Internet: john at trillian.jsc.nasa.gov \ \
 \ Barrios Tech.                   \ SPANnet: MPAD::FWU                   \ \
  \ NASA JSC, ER4                   \ TEXnet: UTADNX::UTSPAN::MPAD::FWU    \ \
   \ Houston, TX 77058               \ Voice: (713) 483-8101 FAX: 483-3204  \ \
    -------------------------------------------------------------------------\|



More information about the Comp.sys.sgi mailing list