landscape-scripts
landscape-scripts copied to clipboard
Set the Computer Idle Policy on Ubuntu using Landscape
We need a script that can set the computer lockout policy on Linux. For example, after 10 minutes of the computer being idle, force a screensaver or login screen which requires a password. Beyond pushing this policy out to each machine through Landscape, there needs to be a means to audit the Ubuntu estate, and use Landscape annotations to ensure machines have this policy applied.
These lockout policy settings can be configured in /etc/systemd/logind.conf
Relevant manpage: http://manpages.ubuntu.com/manpages/focal/man5/logind.conf.5.html