Skip to content

Consider using runuser instead of sudo in userdata script #4800

@phene

Description

@phene

FedRAMP STIG hardening guidelines require that nopasswd should not appear in any sudoers configuration. Unfortunately, this also applies to the root user. Can instances of sudo -u ec2-user be replace with runuser -l ec2-user -g ec2user as runuser is available on AL2023, does not involve sudo, and is only available to the root user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions