How do I login as root?
The su
command requires you to put in root password. Root user on Ubuntu in general is locked so no user can login as root
thus su
is not likely to work.
For sudo -s
to work you will have to be part of the admin
group on an Ubuntu machine, which apparently you are not.
If you are the only user on the system that is concerning and may be quite involved to fix. If not I would suggest you talk to the System Administrator or owner of the system to see if you even can get root
privileges.
Be aware that the root account is not active by default.
You will need to do:
sudo passwd root
Then go ahead to set password. Use the root user using
su root
The https://help.ubuntu.com/community/RootSudo suggests:
If you really need a persistent Root login, the best alternative is to simulate a Root login shell using the following command...
sudo -i