Announcement

Collapse
No announcement yet.

How to add user to sudoer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to add user to sudoer

    Hi all,

    Just installed kubuntu 22.04. I can login but unable to run sudo. It requires adding username to sudoer. Please advise how to do it. Root password has not been created yet. Thanks

    Regards

    #2
    Welcome.

    Two questions first:
    - Is your user the only one on this machine and if yes: why is it not automatically in the sudo group? This is the default in Kubuntu
    - What do you want to do that requires the user to be in the sudo group?

    It could also be helpful if you posted the output of the command groups from the Konsole terminal emulator (please use CODE tags if you do - the "#" symbol).
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      You don't need a root password for anything really. The initial user at installation is always in the sudo group.

      You do not need to add a username to sudoer unless you're giving some user specific access to a specific program without asking for a password. In other words: A user in the sudo group can issue any command as root by prefacing it with "sudo " in the console or entering their user password when a GUI application prompts for root access. If you want to give a specific user access to some commands without total sudo access to all commands, then you need a entry in sudoers.

      More details about what you're attempting and how you wish it to work would be helpful.

      Please Read Me

      Comment


        #4
        Hi all,,

        Thanks for your advice.

        sudo is now working.

        $ groups
        Code:
        satimis sudo
        $ su root
        Code:
        Password:
        #
        with user's password it can login as root

        How to increase the height of the bottom menu bar and the size of its fonts?
        Thanks

        ​How to attach screenshot/file here

        Comment


          #5
          You are missing some group memberships - something does not seem right here.


          Originally posted by satimis View Post
          […]
          with user's password it can login as root
          I strongly advise against logging into the graphical user interface (= KDE Plasma) as root - if that is what you want to do. You will have a good chance to break your system.


          Originally posted by satimis View Post
          […]
          How to increase the height of the bottom menu bar and the size of its fonts?
          Use the Plasma Panel's settings and the System Settings' Appearance section.
          Also see the Kubuntu Manual : https://github.com/kubuntu-team/kubu...s/tag/v22.04.2
          Last edited by Schwarzer Kater; Dec 01, 2023, 02:34 AM.
          Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
          Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

          get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
          install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

          Comment


            #6
            Originally posted by satimis View Post
            ​How to attach screenshot/file here
            You will be able to attach screenshots, now that you have made enough posts (3?) to have this option available to you

            Comment


              #7
              Originally posted by satimis View Post
              How to increase the height of the bottom menu bar and the size of its fonts?
              Thanks

              ​How to attach screenshot/file here
              Since these questions are off-topic I strongly recommend starting new threads

              Please Read Me

              Comment


                #8
                Originally posted by satimis View Post
                $ su root
                Code:
                Password:
                #
                with user's password it can login as root
                you can use the command
                Code:
                sudo -i
                to get a root shell

                Comment


                  #9
                  … but don't forget to enter exit to leave it again!
                  Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
                  Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

                  get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
                  install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

                  Comment

                  Working...
                  X