Why doesn't sudo prompt for a password anymore, when re-executing sudo?

Updated -

When executing sudo, it will prompt for the user's password the first time, but sudo no longer requires a password anymore when re-executing it. Why?

For example:

Run sudoedit /etc/sudoer, add the following line.

kally           ALL = (ALL)     ALL

Login to the system with user kally and run a command:

[kally@localhost ~]...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content