Results 1 to 6 of 6

Thread: As Sudo User, Receive Prompt to "Enter root's password:"

  1. #1
    Join Date
    May 2016
    Beans
    3

    As Sudo User, Receive Prompt to "Enter root's password:"

    Lately I have been getting prompted to "Enter root's password:", even after elevating my permissions as the sudo user, whilst attempting to execute a command, something as simple as "sudo net ads leave -f"

    admin@ubuntu:~$ sudo net ads leave -f
    [sudo] password for admin:
    Enter root's password:

    Previously the root user had been enabled but then I disabled it again. Not sure where to go from here.

  2. #2
    Join Date
    Aug 2009
    Beans
    79
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: As Sudo User, Receive Prompt to "Enter root's password:"

    Hello.
    Can you run
    sudo passwd -S root
    ?
    If you are asked for your root password use recovery mode to get into root console.



    Last edited by Andreyshel; June 28th, 2018 at 09:42 AM.

  3. #3
    Join Date
    May 2016
    Beans
    3

    Re: As Sudo User, Receive Prompt to "Enter root's password:"

    Thanks for the reply. Here is the output from that command:

    admin@ubuntu:~$ sudo passwd -S root
    root L 06/11/2018 0 99999 7 -1

  4. #4
    Join Date
    Aug 2009
    Beans
    79
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: As Sudo User, Receive Prompt to "Enter root's password:"

    Try
    Code:
    net ads leave -U user%password
    where user and password is from AD administrator account. This is not ubuntu login issue, but incorrect use of samba.

  5. #5
    Join Date
    May 2016
    Beans
    3

    Re: As Sudo User, Receive Prompt to "Enter root's password:"

    Yes you are right, that was a rookie mistake the result of too little sleep, thank you for pointing that out. I think what had tripped me up was that I was convinced that it was happening with other commands as well.

    Would be good if net ads returned a better error code.

    Cheers!

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: As Sudo User, Receive Prompt to "Enter root's password:"

    Please mark this thread as solved, to prevent others wanting to help, like me, from wasting time. Also, it helps others looking for a similar solution to their problems.
    Thanks for helping the community.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •