Results 1 to 5 of 5

Thread: vmtoolsd: Username and password mismatch for 'username'.

  1. #1
    Join Date
    Apr 2024
    Beans
    2

    vmtoolsd: Username and password mismatch for 'username'.

    getting below alert on ubuntu servers

    vmtoolsd: Username and password mismatch for 'username'.

    Why vmtoolsd / open-vm-tools using the user account? how to change this?

    How to get rid of this error?

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: vmtoolsd: Username and password mismatch for 'username'.

    Can you please post the full error posted within Code tags?

    Can you tell us what the Virtual host is running, the remote that you are using and the VM OS?

    When I look up this error, to get that error: I see vSphere VM Host, from a Windows remote client, and a problem with a tool from vCenter trying to connect to a vShere VM with the wrong administrative password while it is trying to connect to a VM... That is why I asked the above questions.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Apr 2024
    Beans
    2

    Re: vmtoolsd: Username and password mismatch for 'username'.

    1. Please find the below error.

    This is error is showing in auth.log as well as when we put systemctl status open-vm-tools.service or systemctl status vmtoolsd.service commands
    VGAuth[1751869]: pam_unix(vmtoolsd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user='username'
    VGAuth[1751869]: vmtoolsd: Username and password mismatch for 'username'.

    2. The Vm is running on ESXi host and VM OS is ubuntu 22.04

    3. The above error is getting logged whether we are trying to log in to the VM or not

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: vmtoolsd: Username and password mismatch for 'username'.

    <<Note to Moderators-- This should probably be moved to the "Virtualization" Section. It has to do with an on & off upstream issue with package 'open-vm-tools', not with Server Edition itself.>>

    From inside your Ubuntu VM, do these commands. Please post the output "within CODE Tags". Since you didn't do that in your last post for the error, refer to the "Code Tags" link in my Signature Line if you need help on how to do that...
    Code:
    lsb_release -d
    uname -r
    apt list open-vm-tools --installed
    which vmtoolsd
    which vmware-rpctool
    which vmware-toolbox-cmd
    which vmware-vgauth-cmd
    ls /usr/bin/vm*
    sudo systemctl systemctl status vmtoolsd vgauthd --no-pager
    journalctl -u vmtoolsd --no-pager
    journalctl -u vgauthd --no-pager
    /usr/bin/vmware-rpctool 'info-get guestinfo.metadata'
    /usr/bin/vmware-rpctool 'info-get guestinfo.userdata'
    /usr/bin/vmware-rpctool 'info-get guestinfo.vendordata'
    grep . /etc/pam.d/vmtoolsd
    If any of those return NULL, please note that... Especially on the rpctool info-get commands.

    The contents of /etc/pam.d/vmtoolsd (the last command) on Debian and rhel should be similar to this:
    Code:
    #%PAM-1.0#%PAM-1.0
    auth       sufficient       pam_unix2.so nullok
    auth       sufficient       pam_unix.so shadow nullok
    auth       required         pam_unix_auth.so shadow nullok
    account    sufficient       pam_unix2.so
    account    sufficient       pam_unix.so
    account    required         pam_unix_acct.so
    auth sufficient pam_unix2.so nullok
    auth sufficient pam_unix.so shadow nullok
    auth required pam_unix_auth.so shadow nullok
    account sufficient pam_unix2.so
    account sufficient pam_unix.so
    account required pam_unix_acct.so
    But that is just an example with "them"... Current Ubuntu is a little different, where it has /usr/lib/x86_64-linux-gnu/security/pam_unix.so, but unix2.so is not there, so is all on pam_unix.so, like below...

    The bare minimum, like one of my servers, is this
    Code:
    #PAM configuration for vmtoolsd
    
    @include common-auth
    
    account    required    pamshells.so
    @include common-account
    
    ## with common-auth included, that adds
    auth    [success=1 default=ignore] pam_unix.so nullok
    auth    requisite                  pam_deny.so
    auth    required                   pam_permit.so
    auth optional                      pam_cap.so
    
    ##With common-account included, that adds
    account [success=1 new_authtok_reqd=done default=ignore]    pam_unix.so
    account requisite                       pam_deny.so
    account requires                        pam_permit.so
    And tell us the release/version of the ESXi Virtualization Host. Also note the OS, version, and method of "VM connection" of the remote machine you are connecting to the VM.

    Make a folder and keep all that output in a log file. Include the link to this thread. It will most likely need to be reported to LaunchPad in a Bug Report so they can report the problem to the upstream maintainer (https://github.com/vmware/open-vm-tools)
    Last edited by MAFoElffen; 3 Weeks Ago at 03:57 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #5
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: vmtoolsd: Username and password mismatch for 'username'.

    Moved to Virtualisation
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

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
  •