Re: DCL procedure to find and delete unused accounts?
From: Michael Unger (spam.to.unger_at_spamgourmet.com)
Date: 02/15/04
- Previous message: Ken Robinson: "Re: DCL procedure to find and delete unused accounts?"
- In reply to: Stephen Eickhoff: "DCL procedure to find and delete unused accounts?"
- Next in thread: Main, Kerry: "RE: DCL procedure to find and delete unused accounts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 15 Feb 2004 12:43:04 +0100
On 2004-02-14 19:19, "Stephen Eickhoff" wrote:
> Just so I don't have to reinvent the wheel, has anyone written a DCL
> procedure to find users that haven't logged in for a certain amount of time
> and disable or delete them?
Saved a long time ago from a rather old article (DECUS Munich,
VMS-Notes) ...
|
================================================================================
| Note 9962.8 Expired Accoutns list
8 of 8
| DECUS::INFO_VAX 40 lines
23-JUL-1998 16:40
|
--------------------------------------------------------------------------------
| Date: Thu, 23 Jul 1998 12:16:00 +0100
| From: Alistair McIntosh <a.mcintosh@LILLY.COM|
| Subject: Re: Expired Accoutns list
|
| Scott H. Stevens wrote:
|
|>
|> Hello All,
|>
|> I'd like to know what the best way is (if one is possible, since
I'm new
|> at this) to list expired accounts or at least a list of all accounts and
|> their last log on date.
|
| A hacked together command file that reads through SYSUAF.DAT follows, it
| lists last interactive login date and time & disuser flag. If the date
| displayed is 17-nov-1858 it is because they have never interactivly
| logged in.
|
| (NOTE - Compaq/Digital may change the layout of SYSUAF in the future)
|
| $ Open/Read/Share=Write Uaf_File SYS$SYSTEM:SYSUAF.DAT
| $ open/Write out_file aim.lis
| $loop:
| $ Read Uaf_File Uaf_Record /end=end
| $ User = F$extract(4,20,Uaf_record)
| $ Owner = F$extract(85,31,Uaf_record)
| $ Disable = ""
| $ if f$cvui(4,1,F$extract(468,1,uaf_record)) Then disable =
"DIS-USER"
| $ Uaf_llogin_quad = F$extract(396,8,Uaf_record)
| $ Uaf_llogin =
f$fao("!%D",f$cvui(32,32,f$fao("!AD",8,Uaf_llogin_quad)))
| $ write sys$output "''User' ''uaf_llogin' ''disable'"
| $ goto loop
| $end:
| $ Close uaf_file
|
| Hope this helps
|
| --
| A.McIntosh @lilly.com
| Collected DC Weather Reports http://www.sonnet.co.uk/muse/dcwrp.html
Michael
-- Real names enhance the probability of getting real answers. Please do *not* send "Security Patch Notifications" or "Security Updates"; this system isn't running a Micro$oft operating system. My e-mail account at DECUS Munich is no longer valid.
- Previous message: Ken Robinson: "Re: DCL procedure to find and delete unused accounts?"
- In reply to: Stephen Eickhoff: "DCL procedure to find and delete unused accounts?"
- Next in thread: Main, Kerry: "RE: DCL procedure to find and delete unused accounts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|