You are not logged in.

#1 2026-06-17 17:15:17

jjanderson5
Member
Registered: 2016-05-10
Posts: 167

autologout is not working

I'm running the bookworm release.

In the past, I have run my systems using be setting the "autologout"
environment value, e.g.

    setenv autologout 3600

This gets set in my $HOME/.cshrc file, which is executed when I log in.

I have been trying to get the auto logout feature to work, but with
no success. Should I be using a different command.

Jim A.

Offline

#2 2026-06-18 16:44:32

hhh
Miss Grace Jones
From: Jamaica/Paris/NY
Registered: 2015-09-17
Posts: 17,198
Website

Re: autologout is not working


The future arrived. Read the terms and conditions.

Offline

#3 Yesterday 14:29:15

jjanderson5
Member
Registered: 2016-05-10
Posts: 167

Re: autologout is not working

Thank for the input, but autologout is still not working for me.

My /etc/profile.d/autologout.csh is:

   #! /bin/csh -f

   set -r autologout=5

At this point, I am thinking there is a system problem on my PC, but I am not sure how to track it down. I have looked at the /var/log directory, but I don't see anything there out of the ordinary.

Last edited by jjanderson5 (Today 12:43:40)

Offline

#4 Today 13:24:16

jjanderson5
Member
Registered: 2016-05-10
Posts: 167

Re: autologout is not working

I followed the instructions at:

https://www.cyberciti.biz/faq/linux-uni … time-outs/


Below the line in this post is a short sequence showing:
   1) the contents of /etc/profile.d/autologout.csh on my system where autologout is
      set to 1 minute
   2) the data and time
   3) the date and time 90 seconds later

In theory, the session should have logged out after 1 minute, but 90 seconds later the sessions was still running. I tried this sequence on a different host, and the session did not logout there either.



_____________________________________________________________
jja@hodges% cat /etc/profile.d/autologout.csh
#! /bin/csh -f

set -r autologout=1
jja@hodges% date
Tue Jun 23 09:08:42 AM EDT 2026
jja@hodges% !!
date
Tue Jun 23 09:10:12 AM EDT 2026
jja@hodges%

Offline

Board footer

Powered by FluxBB