canonical / canonical/landscape-scripts

Set the Computer Idle Policy on Ubuntu using Landscape

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
50
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with /etc/systemd/logind.conf and the linked logind.conf manpage to identify the lockout settings. Then inspect how Landscape can push configuration, audit the Ubuntu estate, and use annotations; done means machines receive the policy and can be identified as compliant or not.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
devops, infrastructure, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.