Sunday, May 5, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 7135  / 2 Years ago, mon, february 21, 2022, 4:15:31

When I type 'sudo' before command to act as a superuser, it never ask me for the password at all.
I didn't remember what I did.


More From » command-line

 Answers
1

Check your sudoers privilege. Sometimes permission might be over written. Do the follow:



cd /etc/sudoers.d
sudo visudo


I will assume you will have



# User privilege specification
root ALL=(ALL:ALL) NOPASSWD:ALL


Change it to



# User privilege specification
root ALL=(ALL:ALL) ALL


Hope it help :)


[#24750] Tuesday, February 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
defendle

Total Points: 219
Total Questions: 131
Total Answers: 112

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
;