Results 1 to 4 of 4
Hi,
I installed Ubuntu 10.04 as a vm in VMPlayer 3.0. My correct user password is required to log in. When I use the sudo command or enter an area ...
- 05-04-2010 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 18
[SOLVED] Ubuntu 10.04 sudo not needing password
Hi,
I installed Ubuntu 10.04 as a vm in VMPlayer 3.0. My correct user password is required to log in. When I use the sudo command or enter an area that requires my password, the password box pops up as it should.
The problem is:
If I enter my actual password, it is not accepted.
But if I enter nothing, as in just hit enter, it works. It shouldn't.
That seems just a little backwards and I don't get it. I've re-installed the vm and still have the same problem.
Thanks for any thoughts/ideas
James
- 05-04-2010 #2
Hi,
Using sudo once should remember the password for about 5 minutes and will not be needed to enter a password when executing it again in those 5 minutes.
But this does not seem to be your issue.
Post us:
And the entry in:Code:sudo -l
/etc/sudoers
Maybe it fixes your issue when you change the root user its password?
Code:sudo su
Code:passwd root
- 05-04-2010 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 18
Added password to root, but to no avail.
Results of sudo -l:
Here's the /etc/sudoers file:Code:james@vmlucid:~$ sudo -l Matching Defaults entries for james on this host: env_reset User james may run the following commands on this host: (ALL) ALL james@vmlucid:~$
Code:# /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Defaults env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=(ALL) ALL # #includedir /etc/sudoers.d # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
- 05-14-2010 #4Just Joined!
- Join Date
- Sep 2008
- Posts
- 18
Problem solved!
Along with the sudo password not working correctly, I realized I didn't even need a password to login. Just click login without entering a password, and in I went. Of course, for those of us who keep our vm's on removable drives, it's hugely insecure.
Too make a long story short...
The problem lies in VMWare Player's Easy Install. When creating your Ubuntu 10.04 vm, do not use the first 2 options.
Instead, choose the 3rd option: "I will install the operating system later."
Thereby creating a blank vm. After going through the creation steps, and your back to your starting vm screen, put disc in the drive, make sure the blank vm is selected, choose start vm, then install Ubuntu 10.04.
Installing this way fixed everything. The no keyboard problem at login was fixed. The password problem was fixed.
Cheers,
James


