(In general, it could be helpful to show exactly what commands you tried and what the output was, and which Linux distribution you are using. So, I am not quite sure what your problem is here, but I'll try to help anyway.)
Some Linux distributions don't have you set a root password on installation, but encourage that you use sudo
to run commands as root. The program /usr/bin/sudo
is indeed owned by root (uid 0), and must be owned by root in order to work. So don't try to change that.
To use sudo
, you type sudo *command*
in the shell. sudo
will then ask for your user password, and after you typed it, will execute the command with root privileges. It looks like this, in this example with the command id
:
$ sudo id
[sudo] password for jyrgenn: *** password typed here ***
uid=0(root) gid=0(root) groups=0(root)
Please see that id
prints uid=0
here; that shows id
is executed with root privileges.
If this doesn't solve your problem, please tell us which Linux distribution you are using, what exactly your are trying to accomplish, what commands you ran, and what the exact output or error message was.