Re: sudoers question
On Fri, May 12, 2023 at 08:13:31PM +0800, Tom Reed wrote:
> that's normal. for example, I have to check every kind of logs (mail,
> webserver, systems etc). They require sudo then.
If you check the logs all at once, as part of a daily routine, then you
only have to type the password one time, at the beginning of your
log-checking session. The second, third, fourth, etc. sudo commands
will all use the cached credentials that you supplied the first time.
You might also consider adding "tom" to the "adm" group, so that "tom"
can read most of the system log files without needing sudo.
Reply to: