[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

set timeout after 60 seconds but only for a group

hello ... i have set default logout after 60 seconds idle .. but i want it to be active only for group users, not for all users on the system .. how cand that be done ?

TMOUT=60;export TMOUT; # bash, sh
...
0
keepwalking
Asked:
keepwalking
1 Solution
 
ahoffmannCommented:
if [ "`id -gn $USER`" = 'your-group' ]; then
  TMOUT=60;export TMOUT
fi
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now