2023-07-31 03:21:06 +02:00
|
|
|
command = "privilege"
|
2023-07-30 18:40:18 +02:00
|
|
|
|
2023-07-31 10:20:06 +02:00
|
|
|
[[match_err]]
|
2023-07-30 19:10:16 +02:00
|
|
|
pattern = [
|
2023-07-30 19:50:22 +02:00
|
|
|
"as root",
|
2023-07-30 19:10:16 +02:00
|
|
|
"authentication is required",
|
2023-07-30 19:50:22 +02:00
|
|
|
"be root",
|
|
|
|
|
"be superuser",
|
2023-07-30 19:10:16 +02:00
|
|
|
"eacces",
|
|
|
|
|
"edspermissionerror",
|
|
|
|
|
"error: insufficient privileges",
|
2023-07-30 19:50:22 +02:00
|
|
|
"insufficient privileges",
|
2023-07-30 19:10:16 +02:00
|
|
|
"need root",
|
|
|
|
|
"non-root users cannot",
|
|
|
|
|
"not super-user",
|
2023-07-30 19:50:22 +02:00
|
|
|
"only root can",
|
2023-07-30 19:10:16 +02:00
|
|
|
"operation not permitted",
|
|
|
|
|
"permission denied",
|
2023-07-30 19:50:22 +02:00
|
|
|
"requires root",
|
2023-07-30 19:10:16 +02:00
|
|
|
"root privilege",
|
2023-07-30 19:50:22 +02:00
|
|
|
"root user",
|
2023-07-30 19:10:16 +02:00
|
|
|
"sudorequirederror",
|
|
|
|
|
"superuser privilege",
|
2023-07-30 19:50:22 +02:00
|
|
|
"unless you are root",
|
|
|
|
|
"updatedb: can not open a temporary file",
|
2023-07-30 19:10:16 +02:00
|
|
|
"use `sudo`",
|
|
|
|
|
"you don't have access to the history db.",
|
|
|
|
|
"you don't have write permissions",
|
|
|
|
|
]
|
2023-07-31 09:24:46 +02:00
|
|
|
suggest = [
|
|
|
|
|
'''
|
|
|
|
|
#[executable(sudo)]
|
2023-08-04 02:42:16 +02:00
|
|
|
sudo {{command}}
|
|
|
|
|
''',
|
2023-07-31 09:24:46 +02:00
|
|
|
'''
|
|
|
|
|
#[executable(doas)]
|
2023-08-04 02:42:16 +02:00
|
|
|
doas {{command}}
|
|
|
|
|
''',
|
2023-07-31 09:24:46 +02:00
|
|
|
]
|