Operating System - HP-UX
1752786 Members
6029 Online
108789 Solutions
New Discussion юеВ

Re: time out session vreation

 
resolve of disks fails
Occasional Advisor

time out session vreation

Hi,

I want to configure TMOUT in rp4440 server ,I checked the /etc/profile file their I didnt get any option for TMOUT can any one tell whether i need to create user for TMOUT and whether I have to edit users(TMOUT) .profile or I have to edit /etc/profile if it is in /etc/profile where I have to edit

Also I want to set umask value that is also not available in /etc/profile so please inform where I to edit in /etc/profile

Regards
Vishal
7 REPLIES 7
Richard Hepworth
Esteemed Contributor

Re: time out session vreation

Hi,

Put them anywhere above the "trap 1 2 3" line.

You don't need a user for TMOUT, just set the variable as you require. i.e

TMOUT=600;export TMOUT

Richard
Suraj K Sankari
Honored Contributor

Re: time out session vreation

HI,
and for umask set at /etc/profile for all user and root/.profile for root user.


# echo umask 07022 >> /etc/profile
# echo umask 07077 >> ~root/.profile

Suraj
resolve of disks fails
Occasional Advisor

Re: time out session vreation

Hi,

What exactly umask will do?Why we need to set ?
T G Manikandan
Honored Contributor

Re: time out session vreation

By default for files the permissions are 666 and directories are 777.

so it would be world readable and writable.

Hence for security, we set umask.

For ex. umask is 0022

So the default permissions with change to

For files:

666
022
----
644

for directories:

777
022

-----
755
-----

Dennis Handly
Acclaimed Contributor

Re: time out session vreation

>Suraj: echo umask 07022 >> /etc/profile
># echo umask 07077 >> ~root/.profile

These values are too big for umask, only 9 bits. It would also make more sense to edit the files rather than blindly adding to the end.
resolve of disks fails
Occasional Advisor

Re: time out session vreation

Thanks for support

As I mentioned TMOUT creation.I set TMOUT=300
export TMOUT
in /etc/pofile above the "trap 1 2 3" line.
but after 5min session is not closing itself nor its giving any message.So please suggest any thing else I have to edit.
T G Manikandan
Honored Contributor

Re: time out session vreation

you need to relogin with a new session and keep it idle for 5 mins.