• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Ubuntu 16.04 sudo problem

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

    Ubuntu 16.04 sudo problem

    I created a VM running Ubuntu 16.04 the user has never had a password, it's was setup using an SSH key and as far as I remember has always worked fine, however when i run any sudo commands it's asking for a password, obviously I've never set one so couldn't begin to imagine what it will be.

    Any idea what's going on?
    Originally posted by Stevie Wonder Boy
    I can't see any way to do it can you please advise?

    I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

    #2
    Originally posted by SimonMac View Post
    I created a VM running Ubuntu 16.04 the user has never had a password, it's was setup using an SSH key and as far as I remember has always worked fine, however when i run any sudo commands it's asking for a password, obviously I've never set one so couldn't begin to imagine what it will be.

    Any idea what's going on?
    Is is asking for the Root password?
    Is the user in the sudoers group?

    Comment


      #3
      Originally posted by SimonMac View Post
      I created a VM running Ubuntu 16.04 the user has never had a password, it's was setup using an SSH key and as far as I remember has always worked fine, however when i run any sudo commands it's asking for a password, obviously I've never set one so couldn't begin to imagine what it will be.

      Any idea what's going on?


      Can you logon to the VM as root and reset the user's password? If not then you're a bit scuppered short of mounting the VM disk onto another VM and editing the /etc/passwd and/or the /etc/shadow file manually.

      Or have a read of this..
      ubuntu - Creating an user without a password - Unix & Linux Stack Exchange
      See You Next Tuesday

      Comment


        #4
        Originally posted by Lance View Post
        Can you logon to the VM as root and reset the user's password? If not then you're a bit scuppered short of mounting the VM disk onto another VM and editing the /etc/passwd and/or the /etc/shadow file manually.

        Or have a read of this..
        ubuntu - Creating an user without a password - Unix & Linux Stack Exchange
        Boot into recovery mode, reset the root password, then su to root and change the user password?
        And the lord said unto John; "come forth and receive eternal life." But John came fifth and won a toaster.

        Comment


          #5
          Originally posted by Platypus View Post
          Is is asking for the Root password?
          Is the user in the sudoers group?
          It's asking for the password for the user I created.

          Originally posted by b0redom View Post
          Boot into recovery mode, reset the root password, then su to root and change the user password?
          It's an azure VM so I can send some commands from the console which seem to work as root, will try using that to set the password of the account
          Originally posted by Stevie Wonder Boy
          I can't see any way to do it can you please advise?

          I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

          Comment


            #6
            Originally posted by SimonMac View Post
            It's asking for the password for the user I created.



            It's an azure VM so I can send some commands from the console which seem to work as root, will try using that to set the password of the account
            you can reset the master password of the VM with Azure.
            There's a 'reset password' panel under Support + Troubleshooting.
            That'll do the job.
            See You Next Tuesday

            Comment

            Working...
            X