improv: small details

This commit is contained in:
iff 2023-07-31 03:21:06 +02:00
parent 982149802a
commit 72db07051b
5 changed files with 26 additions and 20 deletions

30
rules/sudo-doas.toml Normal file
View file

@ -0,0 +1,30 @@
command = "privilege"
[[match_output]]
pattern = [
"as root",
"authentication is required",
"be root",
"be superuser",
"eacces",
"edspermissionerror",
"error: insufficient privileges",
"insufficient privileges",
"need root",
"non-root users cannot",
"not super-user",
"only root can",
"operation not permitted",
"permission denied",
"requires root",
"root privilege",
"root user",
"sudorequirederror",
"superuser privilege",
"unless you are root",
"updatedb: can not open a temporary file",
"use `sudo`",
"you don't have access to the history db.",
"you don't have write permissions",
]
suggest = 'sudo {{command}}'