Use sudo without entering password

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Use sudo without entering password

Postby hankivy » Jun 25th, '20, 22:58

I am trying to configure sudo to allow my user to run sudo without reentering my password.
Currently I can run sudo, but only if I reenter my password. There appears to be a time out that allows me to do it sometimes.
In /etc/sudoers I have a line:
Code: Select all

In /etc/sudoers I do NOT have any line like:
Code: Select all
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

Any help is appreciated.
Posts: 114
Joined: May 19th, '14, 20:36

Re: Use sudo without entering password

Postby doktor5000 » Jun 25th, '20, 23:33

Which groups does hank belong to ?
Also, please check in msecgui what base security level is currently active. See ... ml#msecgui

FWIW, I'm using the same sudo rule here and that by itself works fine, no need to enter a password at all.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
Posts: 15830
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest