[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

564.0. "captive decwindow environment" by BUSHIE::TAN (David Tan, Sydney CSC) Mon Apr 10 1989 04:06

    	An utility customer wants to automate their workstation
    environment such that upon powering up the workstation, the 
    system will bypass login request, and went straight to create
    session manager and fileview, and then proceed to display
    their application , together with the session manager and fileview
    as icons (no as windows).   Furthermore, he doesn't want his
    user access to DCL commands, hence no create terminal window and
    dcl command utility, in otherword a captive account.  Is it
    possible to do all these and more, thanks for any comments.
    

T.RTitleUserPersonal
Name
DateLines
564.2LDP::WEAVERLaboratory Data Products/ScienceTue Apr 11 1989 14:557
    Re: .1
    
    Your default width is very unfriendly to those of us running 80
    columns.
    
    							-Dave

564.3DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Tue Apr 11 1989 15:065
Hmmm.  Sorry.  I'm using DECW Notes on a 100DPI screen, and don't have all
the widths set up right.

Burns

564.4Is this better?DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Tue Apr 11 1989 15:0913
Well, we officially don't support captive accounts.  There were too many odd
things that we had to account for.  If your account would be willing to have the
person log on, though, I suppose you could put the appropriate commands to run
the application in DECW$LOGIN.COM, and then never exit from DECW$LOGIN.COM (thus
you never run the session manager, and thus can't get terminals).  I would not
guarantee anything about this being secure against malacious users, but it
should do about the right thing on the surface. 

Heck, for that matter, they could start their application from SYSTARTUP to
prevent the user from having to log in. 

Burns

564.5Need "captive" setup!WJG::GUINEAUThu May 04 1989 12:5628
>person log on, though, I suppose you could put the appropriate commands to run
>the application in DECW$LOGIN.COM, and then never exit from DECW$LOGIN.COM (thus
>you never run the session manager, and thus can't get terminals).  I would not



I tried this:  
	DECW$LOGIN.COM:

	$ run RZAudit
	$ logout

I log in from the start session screen. My application runs fine, (aside from
the watch cursor, which I guess the application will have to fix :-)

Upon exiting the application, I expected to get back to the start session screen
again but all I get is a blank screen with the icon box and nothing else!
(then requires a forcefull reboot!)

QUESTION:

How can I let a user log into an account via DECwindows start session screen,
then, in that account only, run an application. When the application exits,
I want to be back at the start session screen - i.e. NO user access
to anything other than the application!

John

564.6Try thisATSE::DAVIDSONThu May 04 1989 17:1019
re: .5

Try this DECW$LOGIN.COM

$ set noon
$ run sys$system:decw$clock
$loop:
$ p = f$pid(i)
$ if p .eqs. "" then logout
$ image = f$parse("''f$getjpi(p,"imagname")'",,,"name",)
$ if image .nes. "DECW$WINMGR" then goto loop
$ stop/id='p'
$ run sys$system:decw$startlogin		!needs priv's
$ logout
$ exit 1


Sean

564.7That did it!WJG::GUINEAUThu May 04 1989 18:0615
Works Like a charm! 

Just so I understand,

It's the Window Manager that hangs onto the display, keeping it from
being destroyed?

And then since you logout without going through the session manager, you
need to re-run the startsession stuff.

In any case, Thanks!

John

564.8ATSE::DAVIDSONFri May 05 1989 10:318
re: .-1

I believe that the session manager stops the window manager and runs the
decw$startlogin image when you quit so that you get the login window back.


Sean

564.9Almost what I need, but...34427::MCDONALD_JSurly to bed, surly to rise...Thu May 11 1989 12:4019
I've got the same 'captive user' problem to solve, except the customer's
captive menu system is a DCL command procedure... the login.com procedure of
the captive user, as a matter of fact.  

What the customer would like to happen is that when this special account
(operator's BACKUP account) logs in, no fileview or session manager gets
started.  Instead, a DECterm window gets created and runs the captive login.com
procedure.  Then after the captive user selects 'LOGOUT' from his menu, the
DECWindows Login screen reappears.

Something deep down inside tells me this should be amazingingly simple and I'm
gonna feel stupid when I find out the answer.  Nevertheless, customer
satisfaction demands that I make that sacrifice.  (What a martyr I am, huh?)

Any help you can provide would be greatly appreciated.  I may even include you
in my memoirs.  :-)

					John

564.10There is a way...3823::DAVIDSONThu May 11 1989 18:4611
re: .-1

From previous notes CHILD would be greate for this but it doesn't look like you
can use it because of some of the undocumented things it does.  I have a C
program that will create a decterm window and you can even tell it here is the
command file to use.  This program uses the document DECwTermPort interface
to create the decterm and the rest is just plain old vms system service calls.


Sean

564.11pant...pant...pant8345::WESTI'm just visiting this planet.Fri May 12 1989 01:158
Well..........(as we wait with baited breath)

Would it be possible for you to post source ??

				-=> Jim <=-


564.12Get your copy here!3823::DAVIDSONFri May 12 1989 13:079
re: .11

Copy it from ATSE::USER3:[DAVDISON._C]DECW$CRETERM.C and DECW$CRETERM.COM

I hate coming across long notes with with DECwindows VAXnotes.


Sean

564.13bad keyboard...8899::WESTI&#039;m just visiting this planet.Fri May 12 1989 16:4010
> Copy it from ATSE::USER3:[DAVDISON._C]DECW$CRETERM.C and DECW$CRETERM.COM
                               \/
                                \ 
           Don't you just hate it when your keyboard does this ??

  :^)

				-=> Jim <=-

564.14Yse I srue od! 3823::DAVIDSONMon May 15 1989 09:3316
re: .-1

> Copy it from ATSE::USER3:[DAVDISON._C]DECW$CRETERM.C and DECW$CRETERM.COM
>                              \/
>                               \ 
>          Don't you just hate it when your keyboard does this ??
>
>  :^)
>
>				-=> Jim <=-

Opps!  ATSE::USER3:[DAVIDSON._C]


Sean

564.15More help pleasePRCSWS::NICHOLASHONicholas Ho, PRC SWS, @HGO (Hong Kong)Wed May 31 1989 08:0129
Sean,

Thanks for posting the program DECW$CRETERM.C. It's a nice program.

I modified your command procedure mentioned in 564.6. My intention was to
invoke DECW$CRETERM to create a DECterm after login. The result was that
no DECterm was created and the session logout immediately after login.

$ set noon
$!
$ decterm = "$decw$creterm"
$ decterm -interactive
$!
$loop:
$ p = f$pid(i)
$ if p .eqs. "" then logout
$ image = f$parse("''f$getjpi(p,"imagname")'",,,"name",)
$ if image .nes. "DECW$WINMGR" then goto loop
$ stop/id='p'
$ run sys$system:decw$startlogin		!needs priv's
$ logout
$ exit 1

Any suggestion ?

Regards
Nick

564.16No DECterm controller runningSEAN::DAVIDSONMon Jun 05 1989 17:4715
Nick,

	You need to get the decterm controller (DECW$TE_1) running before
	creating a terminal window.

	You can do this with the -local switch.

$ decterm = "$decw$creterm"
$ decterm -local mynode-name -interactive

	Try this and see how it works out.


Sean

564.17Failed with status code 2312FNYMV7::MERLEHANThu Aug 10 1989 14:0875



	I used your ideas/code to create a captive account to do some simple

system management jobs for remote satellites from our LAVC (captive login.com).

It works well on VWS but I also need it for DECwindows. 

Below is a printout of the log file, command procedure and directory.

Any help would be much appreciated...

VMS v5.1, DECwindows V1.0 (SDC)

			******* DECW$SM.LOG *******


 %SET-I-NEWLIMS, new working set:  Limit = 200  Quota = 200  Extent = 3100

 DECwTermPort failed with a status code of 2312 

 WEM          logged out at 10-AUG-1989 17:48:30.20


$!	*************  DECW$LOGIN.COM   ****************
$!
$ set noon
$ This_Node = F$Getsyi("NODENAME")
$ uic = f$user()
$ Here = f$trnlog("sys$login")
$!
$!
$ decterm = "$''Here'decw$creterm.exe"
$ decterm -local 'This_Node' -interactive
$!
$loop:
$ p = f$pid(i)
$ if p .eqs. "" then goto loop_2
$ if  f$getjpi(p,"UIC") .nes. uic then goto loop
$ if f$getjopi(p,"prcnam") .nes. "" then goto loop
$!
$sec_loop:
$ on warning then goto exit
$ wait 00:00:03
$ show process /id='p'/output=nl:
$ goto sec_loop
$!
$exit:
$loop_2:
$ p = f$pid(k)
$ if p .eqs. "" then goto restart
$ image = f$parse("''f$getjpi(p,"imagname")'",,,"name",)
$ if image .nes. "DECW$WINMGR" then goto loop_2
$ stop/id='p'
$!
$restart:
$run sys$system:decw$startlogin		!needs priv's
$
$logout:
$ logout


	       ******  Directory FNYMV7$DUA1:[WEM] ******

                       Workstation Environment Menu

DECW$CRETERM.EXE;1       17/18       9-AUG-1989 15:23:47.00  [WEM]            
DECW$LOGIN.COM;1          2/3       10-AUG-1989 17:36:39.97  [WEM]            
DECW$SM.LOG;1             1/3       10-AUG-1989 17:46:59.52  [WEM]            
LOGIN.COM;1              20/21       9-AUG-1989 16:20:50.66  [WEM]
SETWIN.EXE;1             11/12      27-JUL-1988 15:16:17.28  [WEM]