You are not logged in.

#1 2022-02-15 01:23:50

leanhtai01
Member
Registered: 2017-04-23
Posts: 19

[SOLVED] sudo prompt for root's password by default on fresh install

Recently I perform a fresh install. After reboot, I noticed that the line:

Defaults targetpw

in file

/etc/sudoers

enabled by default in the new system and when I use sudo it's prompt for root's password instead of user password.

Question: Is it a new default behaviour or a bug?

Last edited by leanhtai01 (2022-02-15 02:12:49)

Offline

#2 2022-02-15 01:34:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,498
Website

Re: [SOLVED] sudo prompt for root's password by default on fresh install

leanhtai01 wrote:

... enabled by default in the new system

Not in the file provided by the sudo package in the arch linux repos.  So this begs the question, what did you actually install?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-02-15 02:12:24

leanhtai01
Member
Registered: 2017-04-23
Posts: 19

Re: [SOLVED] sudo prompt for root's password by default on fresh install

@Trilby Sorry, I just checked, It's my fault. I used script to modify /etc/sudoers file and it's uncomment everything.

Offline

Board footer

Powered by FluxBB