Feature Request: "Commit message"-like flag for logging purposes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sudo-project/sudo
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
sudo-project/sudo#583 ·
Maintainers usually reply within 1 day
-
Signal forwarded to the command is lost when it arrives between fork() and execve() of the commandOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sudo-project/sudo#566 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
sudo-project/sudo#553 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
sudo-project/sudo#552 ·
Maintainers usually reply within 1 day
-
Documentation text overflows container instead of wrappingMay be free again @BittuBarnwal7479 claimed this 131 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
sudo-project/sudo#547 · 1 comment ·
Maintainers usually reply within 1 day
All issues in sudo-project/sudo
Similar issues
-
Status: Opened Type: Bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
luainkernel/lunatik#2221 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FriendsofECCE/ECCE#731 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
zephyrproject-rtos/zephyr#124160 ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
davatorium/rofi#2347 ·