Skip to content

Error: Missing privilege separation directory: /run/sshd #752

Closed
@fungiboletus

Description

@fungiboletus

Description

Running the role ssh_hardening on Debian 12.0 Bookworm seems to fail at the Create sshd_config and set permissions to root/600 step.

Reproduction steps

Run the ssh hardening role on Debian 12 using the default settings.

Current Behavior

TASK [devsec.hardening.ssh_hardening : Create sshd_config and set permissions to root/600] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [debian-12-server]: FAILED! => {"changed": false, "checksum": "abcd", "exit_status": 255, "msg": "failed to validate", "stderr": "Missing privilege separation directory: /run/sshd\r\n", "stderr_lines": ["Missing privilege separation directory: /run/sshd"], "stdout": "", "stdout_lines": []}

Expected Behavior

Success.

OS / Environment

Debian GNU/Linux 12 (bookworm)

Ansible Version

ansible [core 2.16.3]
  config file = /Users/fungiboletus/.ansible.cfg
  configured module search path = ['/Users/fungiboletus/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/9.2.0/libexec/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/fungiboletus/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.12.2 (main, Feb  6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)] (/opt/homebrew/Cellar/ansible/9.2.0/libexec/bin/python)
  jinja version = 3.1.3
  libyaml = True

Collection Version

devsec.hardening:9.0.1

Additional information

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions