Skip to content

Feature Request: "Commit message"-like flag for logging purposes #440

@morgajel

Description

@morgajel

Sudo would benefit from the ability to include a message for logging purposes, similar to Git's -m flag ; e.g.

sudo -m "Cron fell asleep"  systemctl restart cron.service

And log something along the lines of this in the log:

Apr 09 12:40:55 clocktower sudo[10378]: morgajel : TTY=pts/4 ; PWD=/home/morgajel ; USER=root  MESSAGE="Cron fell asleep"; COMMAND=/usr/bin/systemctl restart cron.service

Thoughts?

Thank you for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions