Can you remove the root user from sudoers file on CentOS?

James Mcphee jmcphe at gmail.com
Wed Oct 16 18:58:53 MST 2019


the main reason root is in sudoers is so when you type (or copy/paste) as
root it still works, but the instrux can be more general for users with
sudoers privileges.

On Wed, Oct 16, 2019 at 6:02 PM der.hans <PLUGd at lufthans.com> wrote:

> Am 16. Oct, 2019 schwätzte Phil Waclawski so:
>
> moin moin,
>
> > So, I see the recent major bug with sudo, and on centos (unlike ubuntu
> > flavors)  I never use it.
> >
> > Is there a problem with just commenting out the
> >
> > root ALL = ALL(ALL)    in the sudoers file?
>
> Depends on whether or not you have any scripts that depend on it.
>
> > I don't think su is in any way connected to sudoers, but I want to check
> > before I do something stupid.
>
> su and sudo are different tools and still weren't interconnected a few
> years ago. Haven't verified recently, but the should still not be
> interconnected.
>
> Both are still SETUID for their superpowers.
>
> ciao,
>
> der.hans
>
> > I have done some  searching and I can't get an answer about this so far.
> >
> > Phil Waclawski
>
> --
> #  https://www.LuftHans.com   https://www.PhxLinux.org
> #  SeaGL is mid-november in Seattle - https://SeaGL.org/
> #  "It's your difference that gives you the power that you have."
> #  --Helen Mirren---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss



-- 
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20191016/a1d27a6c/attachment.html>


More information about the PLUG-discuss mailing list