General Discussion & Announcements

 View Only
Expand all | Collapse all

Signing off Users When they forget to Logout

  • 1.  Signing off Users When they forget to Logout

    Posted 05-04-2023 10:02

    Hi ,
    I am just wondering if is it possible to sign off users who usually forget to sign off before leaving for the day. At my work , we usually sign off these users one by one using the command SIGN.OTHER the  enter their username to sign them off.

    What I am interested is if we can bulk sign them off. 

    Please advise. 

    Thanks. 



    ------------------------------
    Roland Kayver
    Core Banking Support
    Teachers Savings and Loan Society Limited
    ------------------------------


  • 2.  RE: Signing off Users When they forget to Logout

    Posted 05-05-2023 04:29

    Hi,
    you can use 
    Logoff The LOGOFF utility can be used to logoff another process. Root privileges are required to logoff another process logged on with a different user id.

    LOGOFF {port | startport-endport}

    You should know the port for the user.

    Rafa Frías




    ------------------------------
    Rafa Frías
    Rocket Forum Shared Account
    ------------------------------



  • 3.  RE: Signing off Users When they forget to Logout

    Posted 05-08-2023 23:41

    you can also MASTER OFF a user session as an Administrator.

    We run through a series of steps to try and prevent corruption of the databases...

    1.  Use TANDEM to take control of the session, then log the user off (as if it was them logging off...)
    2.  Use MASTER OFF to try try and get the user off

    3.  We are running on a Unix platform, so the last option is to kill the PID as an administrator
         first, ps -ef | grep pidno
    this shows details of anythng related to the PID
    then try kill -signal PID
    we try multiple times with differing signal codes trying elimate sessions the "nicest" way possible...
    signal code sequence..:
    15, 13, 1, 3, 5, 7, 9
    with the ps -ef check after each kill command to see if the session has gone



    ------------------------------
    Craig Lawrence
    analyst programmer / DBA
    Rocket Forum Shared Account
    DOCKLANDS SA AU
    ------------------------------



  • 4.  RE: Signing off Users When they forget to Logout

    Posted 05-05-2023 09:28

    On Universe we have Auto.Logoff (or is it Auto.Logout?) 
    At any rate you can add a time of inactivity long enough that no one should be idle for say 6 hours or whatever
    You can add that to the login voc so it applies to all users



    ------------------------------
    Will Johnson
    Systems Analyst
    Rocket Forum Shared Account
    ------------------------------



  • 5.  RE: Signing off Users When they forget to Logout

    Posted 05-05-2023 09:28

    Would setting the autologout in your login procedure help?

    AUTOLOGOUT {number of minutes}

    I think a mass logout would require some coding.

    Karl



    ------------------------------
    Karl Pozmann
    Karl Pozmann
    Akron OH US
    ------------------------------



  • 6.  RE: Signing off Users When they forget to Logout

    Posted 05-05-2023 09:29

    HI Roland,
    Does you system have the AUTOLOGOUT command. you can set that in your login process, then the system will monitor and log out any user that is idle for the number of minutes you set AUTOLOGOUT at.



    ------------------------------
    Rodney Courtney
    Software Development Manager
    Mouser Electronics
    Mansfield TX US
    ------------------------------



  • 7.  RE: Signing off Users When they forget to Logout

    PARTNER
    Posted 05-05-2023 09:30

    Roland,

    This isn't exactly what you're asking for, but if this is UniVerse, you can add AUTOLOGOUT nn (where nn is minutes) to your UV.LOGIN paragraph.  Then if that number of minutes passes without a keystroke being passed to UniVerse, the user is logged out.

    You've probably already looked at that, but just in case ...



    ------------------------------
    Tyrel Marak
    Technical Support Manager
    Aptron Corporation
    Florham Park NJ US
    ------------------------------



  • 8.  RE: Signing off Users When they forget to Logout

    Posted 05-05-2023 11:35

    We use AUTOLOGOUT to auto logoff users after x minutes of inactivity.
    We put this in the LOGIN VOC
    you need to make sure you bypass any special logins. this is part of our LOGIN VOC
    IF @TTY = 'phantom' THEN GO ENDLOGIN
    AUTOLOGOUT 150
    MAIN
    ENDLOGIN:



    ------------------------------
    Jon Card
    VP
    Combined Transport Inc
    Central Point OR US
    ------------------------------



  • 9.  RE: Signing off Users When they forget to Logout

    PARTNER
    Posted 05-08-2023 23:41

    The auto logout seems the best otion.
    For end of day precedures, you can have a different login which bypasses it.

    The other option is to have the following (in pseudo code) : 
    request account to log all users off (may be hard coded)
    get current port number (so you don't log off yourself)
    get other ports not to log off   (exempt list. probably not required if part of end of day procedure)
    get max port number  (be careful not to log off the spooler. may be hard coded)
    start loop incrementing ports from 0 or 1
      if logged in
        if required account
           if not current port or in exempt list then logoff port
      end multiple if
    end loop & get next port

    Regards,
    Warwick



    ------------------------------
    Warwick Dreher
    Warwick Dreher
    Croydon AU
    ------------------------------



  • 10.  RE: Signing off Users When they forget to Logout

    Posted 05-08-2023 23:42

    If you have been granted access with a privileged credential, why don't you use the OS tools. It's usually simple to script and schedule these for automation.

    eg to logout all fred's uv/linux sessions from sh: sudo pkill -term -u fred uvsh 
    For Windows Powershell, look at Stop-Process

    You could set up a scheduled job (win scheduler or *nix cron) to call a logout script before the backup (or whatever the use-case is).



    ------------------------------
    Stuart Boydell
    Rocket Forum Shared Account
    ------------------------------



  • 11.  RE: Signing off Users When they forget to Logout

    PARTNER
    Posted 05-10-2023 09:50

    Hi Roland,

    While all the suggestions put forward are great, do not use any of them. Your system is running on ULTRACS and user must log out via the application, if not your security and user files will get clogged up and will need to be manually cleaned, or logging a Support Call. I believe ULTRACS provides a timeout setting, review the Admin Manual.

    HTH.



    ------------------------------
    Barry Graetz
    Senior Technical Support
    Ultradata Australia Pty Ltd
    Malvern East VIC AU
    ------------------------------



  • 12.  RE: Signing off Users When they forget to Logout

    Posted 05-11-2023 13:09

    Does the application provide access to the logging-out function? At that point, you could incorporate that functionality in the ON.ABORT paragraph. Presumably, logging out would only fire the ON.EXIT paragraph if it exists. 

    If the security and user files pose a problem for abort exits, perhaps it would be useful for reducing support calls that address this issue.



    ------------------------------
    Mark A Baldridge
    Principal Consultant
    Thought Mirror
    Nacogdoches, Texas United States
    ------------------------------