[Info-vax] login information capture
Stephen Hoffman
seaohveh at hoffmanlabs.invalid
Tue Feb 18 11:41:32 EST 2014
On 2014-02-18 14:59:18 +0000, pcoviello at gmail.com said:
> we would like to be able to look at a file and see who has logged in
> from a vendor site using a generic account. we would be looking for
> something where the support person has to put in their name and reason
> for being there, I'm hoping someone has done this already.
Mark the login as RESTRICTED (to prevent bypassing the prompt) and use
READ/PROMPT="Why are you here today? " in the LOGIN.COM, and append it
to a text file, or mail it to a recipient. If you wanted to get
fancy, conditionalize the prompt to display only when in INTERACTIVE
mode, and not in NETWORK, BATCH or OTHER.
Here you go:
$ if f$mode() .eqs. "INTERACTIVE"
$ then
$ read/prompt="Why are you here? " sys$command reason
$ pipe (write sys$output "Reason specified: " + reason ; show
logical/job sys$rem* ) | mail/subj="Vendor login notification"
SYS$PIPE: VMSUSERTONOTIFY
$ endif
--
Pure Personal Opinion | HoffmanLabs LLC
More information about the Info-vax
mailing list