How do I get a Superuser password?

Asked by Lin0rez

when I type:
james@james-laptop:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
james@james-laptop:~$ su
Password:
su: Authentication failure
james@james-laptop:~$

I am the only user and my administrator password doesn't work? How do I become a super user?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Shane Fagan
Solved:
Last query:
Last reply:
Revision history for this message
Vojtěch Trefný (vojtech.trefny) said :
#1

You can't use 'su' to login as root, use 'sudo command' to run command as root or 'sudo -i' to start root terminal.

More about root account in Ubuntu -- https://help.ubuntu.com/community/RootSudo

Revision history for this message
Best Shane Fagan (shanepatrickfagan) said :
#2

you can login as root with
sudo su

Revision history for this message
Lin0rez (vilgosjr) said :
#3

Thanks worked great

Revision history for this message
Martin Kaufmann (martin.kaufmann) said :
#4

you can also make a root-password by typing: sudo passwd (this will prompt you for giving a new UNIX-Password). After you set the new Password you can use su to change to the Root-Account

Revision history for this message
Lin0rez (vilgosjr) said :
#5

Thanks to all who assisted me.

Revision history for this message
Stan Wojnowski (wojowhiskey) said :
#6

Thank you.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

The usual and strong suggested way to get temporary root access is to use the "sudo" command:

sudo dpkg --configure -a