ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Learning Linux

    Scheduled Pinned Locked Moved IT Discussion
    37 Posts 7 Posters 5.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DashrenderD
      Dashrender
      last edited by

      what prevents a rouge program that's running as me from doing that very thing and gaining root access since they don't have to type in a password?

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Dashrender
        last edited by

        @Dashrender said:

        I'm building an ELK stack on CentOS 7.

        The all you do is add your user to the "wheel" group. Wheel is the name of the administrators group. Has been in UNIX since the days of yore.

        Then in the /etc/sudoers file you just uncomment the field that allows WHEEL access to ROOT with NOPASSWD.

        DashrenderD 1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender @scottalanmiller
          last edited by

          @scottalanmiller said:

          @Dashrender said:

          I'm building an ELK stack on CentOS 7.

          The all you do is add your user to the "wheel" group. Wheel is the name of the administrators group. Has been in UNIX since the days of yore.

          Then in the /etc/sudoers file you just uncomment the field that allows WHEEL access to ROOT with NOPASSWD.

          Thanks for that explanation - much better than just adding my name to the sudoers file - but I'm still wondering about the virus/malware protection.

          scottalanmillerS 2 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Dashrender
            last edited by

            @Dashrender said:

            Thanks for that explanation - much better than just adding my name to the sudoers file

            Yes, that really should not happen. Not realistically.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Dashrender
              last edited by

              @Dashrender said:

              but I'm still wondering about the virus/malware protection.

              Don't go around browsing websites from your server. Problem solved 🙂

              1 Reply Last reply Reply Quote 1
              • DashrenderD
                Dashrender
                last edited by

                With User Account Control in Windows, if my user has local admin rights, I still get prompted (normally) so even if some malware is trying to run, if I get an unexpected prompt I should be wary and most likely deny the access.

                Does something like that apply here? in a non gui, I'm not sure how it could. I'm probably over thinking it. In a CLI the only things that are running are those that I type.

                As for someone gaining access to my account, I guess I just need to make sure I have a good password.

                scottalanmillerS 3 Replies Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Dashrender
                  last edited by

                  @Dashrender said:

                  With User Account Control in Windows, if my user has local admin rights, I still get prompted (normally) so even if some malware is trying to run, if I get an unexpected prompt I should be wary and most likely deny the access.

                  In Linux it will just fail, doesn't even prompt you.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Dashrender
                    last edited by

                    @Dashrender said:

                    Does something like that apply here? in a non gui, I'm not sure how it could. I'm probably over thinking it. In a CLI the only things that are running are those that I type.

                    This is what sudo does. It's just proactive instead of reactive.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Dashrender
                      last edited by

                      @Dashrender said:

                      As for someone gaining access to my account, I guess I just need to make sure I have a good password.

                      Or use a key. Or a key plus a password. Or add another for of two or even three factor authentication.

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        Make sure you are running fail2ban.

                        1 Reply Last reply Reply Quote 1
                        • DashrenderD
                          Dashrender
                          last edited by

                          awesome, thanks...

                          1 Reply Last reply Reply Quote 0
                          • MattSpellerM
                            MattSpeller
                            last edited by

                            Had to be done

                            https://xkcd.com/149/

                            1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller
                              last edited by

                              handsofqwertyH 1 Reply Last reply Reply Quote 2
                              • Reid CooperR
                                Reid Cooper
                                last edited by

                                Ubuntu uses the sudo group instead of wheel, for some reason. Just a crazy desire to be non-standard.

                                1 Reply Last reply Reply Quote 1
                                • DashrenderD
                                  Dashrender
                                  last edited by

                                  Where did wheel come from?

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Dashrender
                                    last edited by

                                    @Dashrender said:

                                    Where did wheel come from?

                                    https://en.wiktionary.org/wiki/big_wheel

                                    big wheel (plural big wheels)

                                    (idiomatic) A person with a great deal of power or influence, especially a high-ranking person in an organization.
                                    
                                        She's a big wheel at IBM.
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • DashrenderD
                                      Dashrender
                                      last edited by

                                      LOL - when I think of Big Wheels I think of a three wheeled vehicle for kids...

                                      1 Reply Last reply Reply Quote 2
                                      • dafyreD
                                        dafyre
                                        last edited by

                                        Using @scottalanmiller 's definition, I think of Big Wig, lol. Must be where my southern heritage shows, lol.

                                        1 Reply Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender
                                          last edited by

                                          Why do so many instructions assume selinux is turned off? Don't you want it enabled to protect you?

                                          That and fail2ban?

                                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @Dashrender
                                            last edited by

                                            @Dashrender said:

                                            Why do so many instructions assume selinux is turned off? Don't you want it enabled to protect you?

                                            That and fail2ban?

                                            Because they are lazy, as are most shops, andn so they just disable it.

                                            Although to be fair, turning it off for an install and enabling again when done is fine. It's running operationally without it that is bad.

                                            DashrenderD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post