Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
I think we should reopen this, as it's not asking how to reset the password, but instead what password to use. Many people new to Ubuntu don't know that the password for sudo is just their own password. – Eliah Kagan Aug 18 '14 at 20:39

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

share|improve this answer

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

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

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

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

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

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:


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


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
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 '14 at 20:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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