VMware {code} Community
tshpark
Contributor
Contributor

[Urgent] Please help me out - Invalid user name or password on Guest Ubuntu

Hi,

Ater searching on Google for 1 week, I have finally came here. please help me out.

I have Windows 7 host OS and Ubuntu 11.04 for the Guest OS on running VMWare Workstation 6.5

I have any problem to run Power command such as "start" "stop" "reset"

c:\>vmrun -T ws reset "./Ubuntu.wmx"

HOWEVER,

Whenever I trying to run a command without ID/Password, it returns "Invalid user name or password for the Guest OS" even though YES it is correct ID/PASSWD for the Guest Ubuntu OS.

c:>vmrun -T ws -gu tshpark -gp 2001 runProgramInGuest "./Ubuntu.vmx" /usr/bin/xclock

Error: Invalid user name or password for the guest OS

Also tried,

c:>vmrun -T ws -gu "tshpark" -gp "2001" runProgramInGuest "./Ubuntu.vmx" /usr/bin/xclock

Error: Invalid user name or password for the guest OS

Please help me out how to troubleshoot this problem?

Thanks in advance,

Thomas

0 Kudos
4 Replies
tshpark
Contributor
Contributor

Yes, I have re-installed vmware-tools on the Guest Ubuntu OS!

0 Kudos
lemke
VMware Employee
VMware Employee

The latest Ubuntu rearranged the PAM modules, so the tools PAM config (/etc/pam.d/vmtoolsd) doesn't point to valid files on that release.

This is fixed in an upcoming release of VMware tools.  You can try fixing it yourself by editing the pam config to not use absolute paths.

0 Kudos
tshpark
Contributor
Contributor

Thanks, Lemke

That is the why the commands does work only on Ubuntu 9.04?

Would you tell me how to fix the PAM config file to work with the newer Ubuntu release?

0 Kudos
lemke
VMware Employee
VMware Employee

You need to remove the absolute pathnames in /etc/pam.d/vmtoolsd.  All the full paths like /lib/security/pam_unix.so need to become just pam_unix.so

0 Kudos