[Info-vax] login information capture

Jan-Erik Soderholm jan-erik.soderholm at telia.com
Wed Feb 19 09:54:10 EST 2014


pcoviello at gmail.com wrote 2014-02-19 15:47:
> thanks the mail feature is an added bonus! just need to send to the domain.
>
> not sure I want to make it restricted but I could if it would force them
> to fill it in, I may leave it out and see how it goes...
>
> may I ask what the point of the logical is?

Have you tried "show log sys$rem*" on your system?
It's up to you if there is any point with the data.


>
> On Tuesday, February 18, 2014 11:41:32 AM UTC-5, Stephen Hoffman wrote:
>> 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