[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Don't try this at home kids



David Wright <deblis@lionunicorn.co.uk> writes:

> On Mon 29 Nov 2021 at 17:47:24 (-0500), Jude DaShiell wrote:
>> sudo doesn't ask me for my password and I didn't even touch /etc/sudoers
>> to do it.  A file placed in /etc/sudoers.d with permissions of 0440 having
>> any name you choose and contents like:
>> user ALL=(ALL) NOPASSWD:ALL
>> in it with user being the account name will do it.
>
> As /etc/sudoers already contains the line:
>
>   %sudo   ALL=(ALL:ALL) ALL
>
> one should be able to achieve the same effect by
> adding the user to the sudo group.

Near as I can tell from my experience, that doesn't work around the
password requirement.


Reply to: