Sponsored Content
Operating Systems Linux Is it possible to set timeout on Linux screen session Post 303010908 by prvnrk on Tuesday 9th of January 2018 09:08:45 PM
Old 01-09-2018
RedHat Is it possible to set timeout on Linux screen session

Hello friends,

I work on Linux servers via SSH (putty) and run "screen" to preserve my sessions so I can attach/detach them at anytime I wish without losing the connectivity/process disruption which is working perfectly fine.

As my team members also have root access to those servers, it is very much possible for them to attach "MY" sessions and can see what I'm doing. Is there anyway I can't allow them to do that? To solve this issue (upto some extent), setting a time-out on my sessions would help a bit. In other words, is it possible to set a timeout on screen session within which I should re-attach (after detaching) the screen session with 12 hours (for eg timeout set to 12 hours) else that screen session should be auto-killed. Any thoughts on tailoring this requirement would be great.

Many thanks!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet session timeout

hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies

2. Solaris

Setting Screen Lock Timeout

Hello; I have Solaris 2.6 installed on many Sun AXI Ultra Sparc IIi systems. I want to set the Lock Screen global timeout for all users to 15 minutes. I read the Solaris CDE guide which instructed me to create a /etc/dt/config/C/sys.resources file and changed the timout to 15 minutes in... (1 Reply)
Discussion started by: rambo15
1 Replies

3. Solaris

Solaris 8 - Session timeout

Hi, anyone Audit requirement to set the Solaris 8 server session timeout to 180 sec , Please advice how can I do it .... Thanks (3 Replies)
Discussion started by: civic2005
3 Replies

4. Shell Programming and Scripting

session timeout for shell script

I am executing test.sh script. But this script takes lot of time and in the meantime the shell timeouts without completing the script. Is there any command which will continue processing the script. Thanks (3 Replies)
Discussion started by: infyanurag
3 Replies

5. AIX

Unix session timeout?

We recently moved servers to a new data center, and now we're experiencing user sessions timing out after non-activity. We didnt experience this before, or know of any timeout settings that may have been changed. Any things I can check out on the server? (3 Replies)
Discussion started by: NycUnxer
3 Replies

6. Shell Programming and Scripting

set Net:SSH:Expect timeout and set it again.

SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies

7. UNIX for Dummies Questions & Answers

Putty Session Timeout

Hi, I had add the following line into .profile and .bash_profile for the timeout session to avoid putty close automatically : timeout=10800 However, i still keep encounter session time out every after 60 seconds. Can anyone please help advice. Many Thanks! (2 Replies)
Discussion started by: wancy
2 Replies

8. Solaris

Session timeout setting in server

Hi All I need to set timeout of login session of a user if a user is idle for some time. I know the TMOUT setting but it work with only BASH & KORN shell only as I need to set for Bourne shell also. I am trying to put "ClientAliveInterval 300" in sshd_config & restart or refreshing the... (1 Reply)
Discussion started by: sb200
1 Replies

9. AIX

Set timeout value for ssh session to HMC?

Friends, Could anyone let me know - how to set the timeout value for ssh session to HMC? My HMC version is -- V7R7.4.0. I'm sure the version doesn't have anything to do with it. Thanks, -- Souvik (2 Replies)
Discussion started by: thisissouvik
2 Replies
CEREAL(1)							   User Commands							 CEREAL(1)

NAME
cereal - client program to attach to cereal session SYNOPSIS
cereal command [args] DESCRIPTION
cereal is the client program to attach to a running cereal session. SUBCOMMANDS
cereal takes various subcommands: attach SESSION Attach to (take control of) cereal session SESSION. This puts the user into a cereal console, provided by a command-restricted screen session. To detach from an attached session, use "C- d". For help on other available commands, use "C- ?". Cereal uses a limited instance of screen to provide the console. See screen(1) for more info on the available commands. `a' may be used in place of `attach'. follow [options] SESSION Follow (watch, without being able to intervene) a cereal session SESSION. The options are: -c [--cat] to cat log instead of follow; -p [--path] to output just the path to the log file and exit. `f' may be used in place of `follow'. list [SESSION]... List session(s). With no arguments, will list all sessions. The leading three characters in the list indicate: whether the session is running (+) or not (-) or in some unknown state (?), whether the user can attach to the session (a) or not (-), whether the user can follow the session (f) or not (-). If the session state is unknown (?), it's usually because the user asking for information about the session can't read the session stat file. `l' may be used in place of `list'. help Output a brief usage summary. `h' or `?' may be used in place of `help'. EXIT STATUS
Exit status is 0 if OK, 1 if minor problems, 2 if serious trouble. AUTHOR
Written by Jameson Rollins and Daniel Kahn Gillmor. BUGS
If the invoking user does not have read and execute access to the cereal session's supervise directory, `cereal list' may not always indi- cate that session's status accurately. REPORTING BUGS
Report bugs to <cereal@fifthhorseman.net>. COPYRIGHT
Copyright (C) 2007 Jameson Rollins and Daniel Kahn Gillmor This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
screen(1), cereal-admin(8) cereal 0.1 March 2007 CEREAL(1)
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy