mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
A user can always list their own entries, even with -u.
Better error message when failing to list another user's entries.
This commit is contained in:
@@ -322,7 +322,8 @@ log_auth(status, inform_user)
|
||||
(void) fprintf(stderr,
|
||||
"Sorry, user %s is not allowed to execute '%s%s%s' as %s on %s.\n",
|
||||
user_name, user_cmnd, user_args ? " " : "",
|
||||
user_args ? user_args : "", *user_runas, user_host);
|
||||
user_args ? user_args : "",
|
||||
list_pw ? list_pw->pw_name : *user_runas, user_host);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user