skmdab
(filinta)
January 7, 2022, 2:34pm
1
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.
Jack Wallen shows you how to change the default sudo timeout on your Linux machines, to make your administration a bit more efficient—and secure.
Est. reading time: 3 minutes
skmdab
(filinta)
January 7, 2022, 2:50pm
3
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…
dalto
(dalto)
January 7, 2022, 3:00pm
4
Can you share the output of this command:
sudo sh -c "find /etc/sudoers* -type f -exec grep -iH nopasswd {} \;"
3 Likes
dalto
(dalto)
January 7, 2022, 3:30pm
7
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.
skmdab
(filinta)
January 7, 2022, 3:35pm
8
Anyway i solved my issue with your command…
I comment that line…
Now it asking password for every sudo command…
1 Like
skmdab
(filinta)
January 7, 2022, 3:48pm
10
No i changed the screenshot…
for best appearance and best understanding…
1 Like