home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!wupost!uwm.edu!psuvax1!psuvm!auvm!BGUVM.BITNET!MAINTX
- Organization: Ben-Gurion University, Beer-Sheva, Israel
- Message-ID: <VM-UTIL%92111716150251@DEARN>
- Newsgroups: bit.listserv.vm-util
- Date: Tue, 17 Nov 1992 17:01:20 IST
- Sender: VM Utilities Discussion List <VM-UTIL@OHSTVMA.BITNET>
- From: Moshe Israeli <MAINTX@BGUVM.BITNET>
- Subject: Freeing a stucked userid (LOGOFF/FORCE pending)
- Lines: 23
-
- Thanks to those who answered my question. Alas, no suggestion worked, and
- nobody sent a ready made userid replacement exec, so I had to write one
- myself, and it worked for me. Here it is:
- ------------------------------------------------------------------------
- /*
- Free a stucked user (LOGOFF/FORCE pending)
- by chanching its userid to GHOST
- */
- arg user .
- 'EXECIO * CP (STRING LOCATE' user
- if rc ^= 0 then exit rc
- pull . . vmblok .
- addr = d2x(x2d(vmblok)+x2d(110)) /* Userid */
- newuser1 = c2x('GHOS'); newuser2 = c2x('T ')
- newuser = newuser1||newuser2
- 'CP STCP' addr newuser1 newuser2
- say 'User' user 'changed to' x2c(newuser)
- exit
- ----------------------------------------------------------------------
- Then I changed the original userid's 191 mdisk access right to MW and
- everything was fine. Many thanks to the guy who mentioned this solution
- some months ago, in this list.
- Moshe
-