Skip to content

Commit

Permalink
(feature) [COTEF1901-104] Sets TMOUT variables as 'readonly' before e…
Browse files Browse the repository at this point in the history
…xporting them
  • Loading branch information
Joris committed Jan 4, 2021
1 parent 5349782 commit ca94fe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/section_5_Access_Authentication_and_Authorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -716,21 +716,21 @@
dest: /etc/bash.bashrc
create: true
regexp: "^TMOUT="
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT ;export TMOUT"
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT ; export TMOUT"
- name: 5.4.5 Ensure default user shell timeout is 900 seconds or less | /etc/profile
lineinfile:
state: present
dest: /etc/profile
create: true
regexp: "^TMOUT="
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT; export TMOUT"
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT ; export TMOUT"
- name: 5.4.5 Ensure default user shell timeout is 900 seconds or less | /etc/profile.d/timeout.sh
lineinfile:
state: present
dest: /etc/profile.d/tmout.sh
create: true
regexp: "^TMOUT="
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT; export TMOUT"
line: "TMOUT={{ shell_timeout_sec }} ; readonly TMOUT ; export TMOUT"
tags:
- section5
- level_1_server
Expand Down

0 comments on commit ca94fe3

Please sign in to comment.