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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.