• 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.
  • FREE webinar: What does a post IR35 reform CV look like? : Wed, Jul 28, 2021 7:15 PM - 8:15 PM BST More details here.

Ubuntu 16.04 sudo problem

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

  • Lance
    replied
    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.

    Leave a comment:


  • SimonMac
    replied
    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

    Leave a comment:


  • b0redom
    replied
    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?

    Leave a comment:


  • Lance
    replied
    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

    Leave a comment:


  • Platypus
    replied
    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?

    Leave a comment:


  • SimonMac
    started a topic Ubuntu 16.04 sudo problem

    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?

Working...
X