File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ We know that this is the case on Raspberry Pi.
250250- ` os_profile_enabled `
251251 - Default: ` true `
252252 - Description: Set to false to disable installing and configuring profile.
253+ - ` os_security_auto_logout `
254+ - Default: ` 0 `
255+ - Description: Set timeout in seconds for logout users automatically after time. Setting this to ` 0 ` disables the timeout.
253256- ` os_securetty_enabled `
254257 - Default: ` true `
255258 - Description: Set to false to disable installing and configuring securetty.
Original file line number Diff line number Diff line change @@ -364,6 +364,9 @@ os_profile_enabled: true
364364# Set to false to disable installing and configuring securetty.
365365os_securetty_enabled : true
366366
367+ # Set timeout in seconds for logout users automatically after time. Setting this to `0` disables the timeout.
368+ os_security_auto_logout : 0
369+
367370# Set to false to disable installing and configuring sysctl.
368371os_sysctl_enabled : true
369372
Original file line number Diff line number Diff line change 1313 path : /etc/profile.d/pinerolo_profile.sh
1414 state : absent
1515 when : os_security_kernel_enable_core_dump | bool
16+
17+ - name : Add autologout to profile env
18+ template :
19+ src : ' etc/profile.d/tmout.sh.j2'
20+ dest : ' /etc/profile.d/tmout.sh'
21+ owner : ' root'
22+ group : ' root'
23+ mode : ' 0750'
Original file line number Diff line number Diff line change 1+ # Logout Timeout
2+ export TMOUT={{ os_security_auto_logout }}
3+ readonly TMOUT
You can’t perform that action at this time.
0 commit comments