Announcement

Collapse
No announcement yet.

There isn't a user with sudo privileges

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    There isn't a user with sudo privileges

    I'm locked in my own system, i can't use visudo, i can't update, a week ago i had a user with privileges but i wiped it out. Can a live cd and some commands help me?

    #2
    Re: There isn't a user with sudo privileges

    Originally posted by kattandpeist
    I'm locked in my own system, i can't use visudo, i can't update, a week ago i had a user with privileges but i wiped it out. Can a live cd and some commands help me?
    Boot into recovery (single user) mode and add your user account to the admin group. Group name is 'adm'

    useradd -G adm username
    we see things not as they are, but as we are.
    -- anais nin

    Comment


      #3
      Re: There isn't a user with sudo privileges

      I don't know how to boot in recovery, i press escape and that doesn't bring grub to me.
      It says that the user already exists

      Comment


        #4
        Re: There isn't a user with sudo privileges

        When you get to the login screen, there should be an option in the menu to boot into failsafe mode. Maybe that will allow you to useradd. Good luck!

        Comment


          #5
          Re: There isn't a user with sudo privileges

          The group you want is actually 'admin' ('adm' serves another purpose).

          I don't know how to boot in recovery, i press escape and that doesn't bring grub to me.
          Just to make sure, you pressed esc while grub is loading?

          Can a live cd and some commands help me?
          Yes, but recovery mode is easier/simpler

          It says that the user already exists
          Use:
          Code:
          adduser your_username admin

          Comment


            #6
            Re: There isn't a user with sudo privileges

            Originally posted by kubicle
            The group you want is actually 'admin' ('adm' serves another purpose).
            You're right - my bad.

            useradd -G admin username

            or

            adduser username admin
            we see things not as they are, but as we are.
            -- anais nin

            Comment


              #7
              Re: There isn't a user with sudo privileges

              Originally posted by wizard10000
              useradd -G admin username
              I think that tries to create a new user, rather than adding an existing user to a group...that's why I recommended adduser

              Comment


                #8
                Re: There isn't a user with sudo privileges

                Originally posted by kubicle
                I think that tries to create a new user, rather than adding an existing user to a group...that's why I recommended adduser
                Yeah, I screwed that one up all the way around
                we see things not as they are, but as we are.
                -- anais nin

                Comment

                Working...
                X