1833875 Members
1671 Online
110063 Solutions
New Discussion

Re: Display Locking

 
Vishal Phlad
New Member

Display Locking

Our users run applications of a unix box via telnet session.
Is there a way to lock the users telnet session if there has been no keyboard input for a certain amount of time ?
When the user tries to enter something it asks for his/her unix password in
order to continue working
5 REPLIES 5
RikTytgat
Honored Contributor

Re: Display Locking

I don't think this is possible.

There is an alternative though. It is possible to log the user off after a predefined period of inactivity. All shells I know off support this feature (sh-posix, sh, ksh, bash).

When the environment variable TMOUT is set and has a value greater than 0, the shell terminates after waiting the number of seconds for user input.

If your users are using CDE, it is possible to lock the screen after a predefined period of inactivity, after which a password is required.

Hope this helps,
Rik
CHRIS_ANORUO
Honored Contributor

Re: Display Locking

You can add session time at the end of the telnet line in /etc/inetd.conf file.
Eg telnet stream tcp nowait root /usr/sbin/telnetd telentd -t1200
(1200 is in seconds)

Cheers!
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
RikTytgat
Honored Contributor

Re: Display Locking

Chris,

Where did you get that information? I looked in the manpages on 10.20 and 11.00 but did not find anything.

I also tried it out, but the connection stays open, even after the time expired.

Thanks,
Rik

Account Not Used
Frequent Advisor

Re: Display Locking

From a security perspective using the TMOUT variable in the /etc/profile is probably the safest way to achieve this task. Example:
TMOUT=6000;export TMOUT. The number 6000 is in seconds.
"Who moved my cheese?"
Deshpande Prashant
Honored Contributor

Re: Display Locking


You can add following lines in /etc/profile
TMOUT=600
readonly TMOUT
This way the TMOUT parameter is made readonly and user can not change it at command prompt.

Prashant.

Take it as it comes.