Originally posted by: SystemAdmin
Hi Mark,
From the "Strengthening AIX Security" document, it is noted to set readonly in this format:
code TMOUT=600 ; TIMEOUT=600 ; export readonly TMOUT TIMEOUT [/code]
Here's my session from a system:
[b]$ grep TMOUT /etc/profile
TMOUT=1200; export readonly TMOUT
$ echo $TMOUT
1200
$ export TMOUT=100
$ echo $TMOUT
100
(after about 40 seconds)
$
Shell will time out in 60 seconds.[/b]
What I believe the line should be is:
code export TMOUT=1200; readonly TMOUT [/code]
Then when I log in:
[b]$ echo $TMOUT
1200
$ export TMOUT=100
ksh: TMOUT: This variable is read only.[/b]
Does the manner described in the referenced document work for you?
Regards,
Glenn
#AIX-Forum