Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

what is the default password of the sudo??, i visit some forums, it tells that the default password is password, but it doesn't work, how can i determine the password??

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?

share|improve this question

marked as duplicate by Seth, hbdgaf, Mateo, karel, Avinash Raj Feb 5 at 6:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
The password is same as you have given while installation. You are a sudo user, it is asking your password not root password. –  Web-E May 18 '13 at 10:49
add comment

7 Answers 7

There is no default password for sudo. The password that is being asked, is the same password that you set when you installed Ubuntu.

share|improve this answer
add comment

Sudo is asking for the user's password it's called with. In your case the password in question is the password of the user genz, hence it says [sudo] password for genz:

share|improve this answer
add comment

As has been pointed out by other answers there is no default sudo password. When you installed Ubuntu you were asked for a password it is the one you created then that you need.

The computer does not store the password anywhere but a hash value created from it; when you type a password a hash value is calculated and this is compared to the hash stored from the correct password.

This makes it very difficult to find the password.

If you have lost the password you can reset it however. See This question

How do I reset a lost administrative password?

share|improve this answer
add comment

By default the root account is disabled, therefore there is no password for it.

If you want to run a command with root privileges simply prefix it with 'sudo', it will ask you for the password to the account you are logged in with (not the root account). Assuming that account is an administrator, of course.

If you want to elevate that entire command session to root privileges type 'sudo su', you will still need to enter the password to your account.

share|improve this answer
add comment

Sudo password is the password that you put in the instalation of ubuntu/yours user password, if you don't have a password just click enter at all. Thats easy probaly you need to be an administrator user for using sudo.

Sorry for the spelling

share|improve this answer
add comment

I think the problem is not the password. It looks like 'genz' it's not the root user so when you are trying to use root privileges it means that the user 'genz' doesn't have root privileges. But I'm new in linux so I'm not sure about that...

share|improve this answer
add comment

Means you want to hack and crack yourself for to login again as normal user ???

correct command order - try this:

sudo su passwd

was it of help ???

if not log-off internet and boot your computer with a live-CD like knoppix

In case you need to delet password entry in shadow-file of /etc ...:

you have to find and edit in terminal of knoppix after:

chmod 757 /etc/shadow 

in root-partition of your installed distro on your harddisk (find proper partition first !) the shadow-file as following:

for example

sudo gedit /etc/shadow

Scroll down to the line containing the root user's information, which looks something like:

root:dsfDSDF!s:12581:0:99999:7:::

Delete everything between the first and second colons, so that the line looks like:

root::12581:0:99999:7:::

Save the file and exit your editor.

Do not forget this in terminal:

sudo chmod 640 /etc/shadow

Type cd to return to your home directory. Type umount mountplace to unmount the partition. Type reboot to reboot your system, and remove the Knoppix CD from the drive.

Now you can log into your system as root with no password.

Make sure you change the password new immediately with sudo su passwd.

share|improve this answer
2  
It is hard for me to understand what you are saying here, and I'm familiar with how sudo and passwords work and a variety of methods of resetting passwords including the hash method you appear to be recommending here. It's been a while since you wrote this... but I'd nonetheless recommend editing it for clarity, keeping in mind the very basic level of proficiency someone reading (or writing) the question here is likely to have on sudo and passwords in Ubuntu. (My notice was drawn to this post because at least on person has flagged it for removal; I believe these were their concerns.) –  Eliah Kagan Jan 18 at 20:33
add comment

protected by Braiam Feb 3 at 22:30

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.