Sudo password prompt don't asking Gnome Terminal

Gnome terminal every time asks sudo password for sudo commands those who newly installed linux distro and why after some days or months passed away the gnome terminal didn’t ask any sudo passwords for sudo commands…

it happens to me same in past on my ubuntu and present now on my fedora also…
i didn’t understand what happening…

There is a five-minute timeout (usually) on the sudo elevation. If you want to change it you need to edit the sudoers file with visudo.

But in my fedora PC it doesn’t asking sudo passwords from months…what about this…!!

sorry i don’t mean the some amount of time means (hours or minutes) in my question.

i will correct my question…

Can you share the output of this command:

sudo sh -c "find /etc/sudoers* -type f -exec grep -iH nopasswd {} \;" 
3 Likes

now i understand… :blush: :blush: thanks

Those are both commented out so I am not sure why you wouldn’t be asked for a password.

EDIT: You were asked for a password in your screenshot…

I am confused about what the actual issue is here.

Anyway i solved my issue with your command…

I comment that line…

Now it asking password for every sudo command…

1 Like

OK, great!

No i changed the screenshot… :innocent:
for best appearance and best understanding…

1 Like