The short answer is, no, you can't disable it.
Ubuntu, which is Debian based, works the same as Debian. If you are logged in as root
(which is userID 0
you will not have to use sudo
for the elevated privilege, you'd already have it.
The difference is that when you install Ubuntu, it'll prompt you for a username and password for logging it and add this user to the sudoers
group. As mentioned in the comments, by default on Ubuntu (which is another difference) the root account is disabled. While it's not advisable, you could enable it just by setting up a password for it with:
$ sudo passwd root
Then you could log in as root... which would be the same as logging in as root on Debian.
A security risk (among many) to having the root account enabled it that the root account is common on all Linux systems. Hackers run scripts to try to break into computers as root. Having the root account disabled is a layer of defense.
As far as disabling sudo
, that's not something you can do on Debian or Ubuntu. A normal user on both OSes will have to have sudoers
access to use elevated commands. By the content in your question, you are already familiar with the sudo
, and sudo su -
variations.
If there were a way to make normal users have full root access, it would be the exact same process with Ubuntu as with Debian.
Note:
By default user IDs below 1000
are hidden and aren't shown on the login screen. You can configure lightdm to allow manual logins with these steps:
- Edit the
/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
configuration file.
- Add this line:
greeter-show-manual-login=true
- Restart the
lightdm
service with: sudo systemctl restart lightdm
- Then use the new Login option to manually type in the
root
userID and password.
To disable the root account (taking it back to the default) run this command:
$ sudo passwd -dl root
You can find other details about how this works on Ubuntu at:
RootSudo - Community Help Wiki
sudo
,su
,gksu
orgksudo
it means you are not signed on as root. You are just a regular user with root privileges that allows you to temporary elevate to root usingsudo
, etc. – WinEunuuchs2Unix Mar 27 '18 at 22:56id
do you show as root (uid=0,gid=0..) or a user (uid>0,gid>0,..) – guiverc Mar 27 '18 at 23:45root
. When I first started learning Ubuntu I created a root user account calledSuperman
. I spent a couple of minutes looking for the link I followed a few years ago but didn't find it. There are other links now but they don't have the screen shots the old link had. – WinEunuuchs2Unix Mar 28 '18 at 01:58sudoer
tools. He mentions that he's already using the tools. He's trying to learn not to remove the prompts for the elevated access. The answer is that he can't remove the elevated access prompt. Reading the other question and answers don't address this. – L. D. James Mar 29 '18 at 15:47root
(which wasn't his question, but something additional that he might benefit by testing. – L. D. James Mar 29 '18 at 18:14sudo
from a Debian system...) – Eliah Kagan Mar 30 '18 at 22:11