Re: Sudo configuration (8.4-systemd)

thomas <[email protected]> Wed, 22 May 2019 10:36:55 +0200
Newsgroups gmane.linux.lfs.general
Message-ID <[email protected]>
Am 2019-05-16 19:52, schrieb Hans Malissa:
> On May 15, 2019 at 3:27 PM, Hans Malissa <[email protected]> wrote:
> 
>> I have installed Sudo-1.8.27 on BLFS 8.4-systemd following the
>> instructions in
>> 
> http://linuxfromscratch.org/blfs/view/stable-systemd/postlfs/sudo.html,
>> and I've followed the instructions as given in the section
>> 'Configuring Sudo'.
>> Sudo itself is working, so I'm assuming that the installation went
>> fine. However, I'm very much confused with the configuration. The
>> configuration as described does not exactly do what I want. I've
>> looked at the sudoers documentation, but the syntax and the various
>> options are too confusing for me.
>> Basically, I want the same behavior that I'm used to from other
>> distributions: when the unprivileged user issues
>> 
>> $ sudo <command>
>> 
>> he is prompted for the root password, and then <command> is executed
>> as root user. Now, with the configuration given on BLFS 8.4-systemd,
>> I need to add my user to the 'wheel' group, but then sudo asks me
>> for the password of that user, not for the root password. This is
>> not quite what I had in mind.
>> I guess it must be simple to achieve this, but I can't figure out
>> the right configuration. What do I need to do to get sudo to simply
>> ask for the root password, and then run the command as root,
>> irrespective of the 'wheel' group?
> 
> I've added the line 'Defaults rootpw' to /etc/sudoers.d/sudo; now it's
> asking for the root password. I believe that the user still needs to
> be in the wheel group, but I guess that's okay.
> 

Fine that problem is solved.

And thanks for reporting how you fixed it. Hardly something is more 
annoying than unanswered questions.

--
Thomas
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page