AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Enter TMOUT on AIX systems

    Posted Wed August 29, 2012 04:37 AM

    Originally posted by: smart13


    Hi all,

    Can anyone aid or had you have been the problem.
    I have a user who has sudo rights and I want that this user has TMOUT function.

    That means if the user does not perform any action in the shell, will be signed out automatically checking. To the open session be closed.

    We have entered exported TMOUT a server in the local "/ home / user / .bashrc" and "/ home/tu00379/.kshrc" Users .

    These two files are user-specific and And we want to set the TMOUT on all servers.

    We have many AIX servers.And when we enter the TMOUT at each server,for us will be a lot of effort.

    Does anyone perhaps know, how to enter the TMOUT on all AIX servers?
    Thank you very much.
    #AIX-Forum


  • 2.  Re: Enter TMOUT on AIX systems

    Posted Mon September 17, 2012 05:18 AM

    Originally posted by: repcsike


    Hello,

    You can edit the /etc/profile file to enable it to all users:

    TMOUT=600
    export TMOUT

    Also if you want to protect the variable you can use "readonly TMOUT" before the export line.
    #AIX-Forum


  • 3.  Re: Enter TMOUT on AIX systems

    Posted Mon September 17, 2012 05:22 AM

    Originally posted by: repcsike


    Also if it is a problem for you to enable it on all servers and don't have any facilities to do such things (enterprise automation facilities), you can write a file with all the server names then cycle through them and run commands via ssh that will append those lines in the appropriate files. Or you can transfer a perl or shell script to the server that will do this.
    #AIX-Forum