Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#440 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
cli, security

Research direction

Start by reading the sudo command-line option handling and logging entry points to find where a new message option would be parsed and recorded. The issue gives an example invocation and log format; done would mean sudo accepts the message and includes it in the command log. The request is 551 days old and has no comments, so there is no indication someone will answer questions.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C
Stars
1.7k
Forks
306
Avg merge
1d 8h
Merged PRs (30d)
24

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sudo-project/sudo

All issues in sudo-project/sudo

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.