[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

2278.0. "Shutdown account" by FRSTSC::ERLEMANN (Bedman strikes back) Thu Feb 15 1990 04:41

Hi,

billion & billion times discussed in earlier times but with no
effective solution.

How to create an account with the *ONLY* intention to comfortably
shut down a workstation system running DECwindows?
My customer wants to create such an account where every non-priv'd
user can login, gets *no* Session Manager, *no* FileView, but *only*
one (1) DECterm with his self-written shutdown command procedure.

I tried it already with several C-Programs (decw$creterm.c,...) but
this had also several bad circumstances for the customer.

I think, that it HAS to be possible to achieve this.


Thanx in advance
	<>Armin<>
T.RTitleUserPersonal
Name
DateLines
2278.1Captive account + batch?AGBEAR::HORNERA.G.Bear, Old fashion teddy bearThu Feb 15 1990 12:488
    You could write a captive command procedure for the special shutdown
    account that would make a shutdown command file and submit it to batch
    on the node.  The account has to be privileged, but the captive command
    file should provide protection.  We use something similiar to shut down
    VAXstations in our cluster without actually having to log onto them.
    Not quite what you want, but very similiar.

              Dave
2278.2DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Thu Feb 15 1990 12:528
You can't use a captive procedure for logging in via DECwindows.  However,
you probably could put such a beast in the DECW$LOGIN.COM file in the SYS$LOGIN
for the shutdown account.  If you never exit DECW$LOGIN, you never get the
session manager run.  This file is really not supported for "captive account"
purposes...it is not guaranteed secure, it does not have a clear and easy
channel to interact with the user, etc etc.  It might work though.

Burns
2278.3BOMBE::MOOREEat or be eatenThu Feb 15 1990 21:1726
    I used to have a special shutdown account for DECwindows workstations
    on my cluster, and I'd be happy to give you details if you want.  But
    I have retired that setup in favor of a slightly different approach:
    
    With DECwindows V2 (VMS 5.3), I now have a menu which is available only
    from the login screen.  This menu executes under the SYSTEM account and
    therefore can be used to do things like shutdown, AutoGen, etc.
    
    Here is the basic configuration:
    
    (SYS$MANAGER:DECW$PRIVATE_SERVER_SETUP.COM)
        $ Define/System/Exec DECW$LOGIN_BACKGROUND SYS$MANAGER:LOGIN_MENU.COM
    
    (SYS$MANAGER:LOGIN_MENU.COM)
        $ Set NoOn
        $!Spawn/NoWait XSetRoot etc... ! to load background image (optional)
        $ Set Process/Name="LoginMenu"
        $ if f$trnlnm("DECW$DISPLAY") .eqs. "" then -
              Set Display/Create/Transport=Local
        $ Define/Process RootMenu SYS$MANAGER:LOGINMENU   ! Special menu definition
        $ Run SYS$MANAGER:ROOTMENU
        $ if f$environment("depth") .eq. 0 then Logout/Brief
        $ Exit
    
    You should be able to find the ROOTMENU program through the DW_EXAMPLES
    conference (on ELKTRA::).
2278.4Hand it out, please!FRSTSC::ERLEMANNBedman strikes backFri Feb 16 1990 04:3113
    
    RE: .3
    Please hand me more details for the special shutdown account you
    mentioned in your reply.
    
    My customer is very nervous to get it as soon as possible and this
    is quite nervous for me because he calls me several times a week
    and I can't get rid of her.
    
    So, please, please solve me and send it to me!!!!!!!!!!
    
    Further many thanx in advance
    		<>Armin<>
2278.5Supplied via mailBOMBE::MOOREEat or be eatenTue Feb 20 1990 18:391
    
2278.6AlternativeNECSC::LEVYEverybody&#039;s doin&#039; that ragMon Feb 26 1990 12:2313
I haven't tried this, but...

With DECwindows V2, you can use the CREATE/TERM/DETACH/NO_LOG to get a 
DECterm that asks you to log in.

Why not just create a SHUTDOWN account on the workstation that executes the 
command procedure in .0 as its login command procedure and make a DECterm_login
selection available to the users from the Session Manager or FileView menu?
Logging into the SHUTDOWN account from this DECterm would shut down the system.

Would their license support this?

	- Dave
2278.7DECW$LOGIN without Exit????ALEXWS::ALEXBugs Are Coming In Triplets ...Sun Mar 11 1990 09:1226
	Burns,

>You can't use a captive procedure for logging in via DECwindows.  However,
>you probably could put such a beast in the DECW$LOGIN.COM file in the SYS$LOGIN
>for the shutdown account.  If you never exit DECW$LOGIN, you never get the
>session manager run.  This file is really not supported for "captive account"
>purposes...it is not guaranteed secure, it does not have a clear and easy
>channel to interact with the user, etc etc.  It might work though.
>

	A customer of mine needs a "captive" account. Actually their request is
to disable various SM options (AutoStart, Applications, etc...). To be exact
their current application uses captive accounts on A/N terminals, and they are
adding some graphics to it. The application will start DECterm with A/N running
there and on demand spawn DECwindows graphics something.

	As captive account won't let one log in via Session Manager and playing
with various customization options may corrupt "normal" flow of things, they are
looking for a valid solution. Not allowing SM to run maybe a good one, but then
the following question rises : "What is SM doing AFTER it finishes DECW$LOGIN?".
Or rather "Is there anything SM does after running DECW$LOGIN that is essential
to normal work?"

	Thanks in advance,
		Alex

2278.8Non sure...better ask the developerDECWIN::FISHERPrune Juice: A Warrior&#039;s Drink!Tue Mar 13 1990 12:108
You'll have to wait for the session manager guru to answer that, or else submit
a querry qar.  She only has a chance to look at this conference once in a while.
I *think* the answer is that besides the obvious things that you see on the
control panel, the SM may do some customization setup (colors and stuff).
Not really sure how much of that is done before you get to DECW$LOGIN.  It
also (I think) restarts the login procedure when you log out.  You could
run DECW$STARTLOGIN, but that requires privileges.  That is a
problem.  All this goes to show why it is not supported, I'm afraid.