• 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!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Ubuntu 16.04 sudo problem"

Collapse

  • 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