Disabling sudo in Ubuntu and derivatives

milomak

Honorary Master
Joined
May 23, 2007
Messages
12,571
Reaction score
92
# sudo passwd root
<enter a super user password>
# sudo visudo

change
Code:
%admin  ALL=(ALL) ALL

to

Code:
#%admin  ALL=(ALL) ALL

I'm not an Ubuntu fan but the latest version supports booting of an ext4 partition. But I hate the fact that the normal user has access to root functions.
 
And if you disable sudo how are you going to log in as root from within a normal session?

Last time I used *buntu the su command was non functioning?
 
And if you disable sudo how are you going to log in as root from within a normal session?

Last time I used *buntu the su command was non functioning?
It is possible to enable root - right in the GUI, nogal. :)
System > Administration > Users and Groups (unlock...)
Select root, click on Properties, enter a password for root...

You should now be able to su -

When you add a new user, you can actually fine tune the user's privileges very nicely. Select a user profile (e.g. Desktop User) and click on the "User Privileges" tab. You can specify to which groups the new user belongs.

B.T.W. I don't normally use Ubuntu, I'm just playing with it while waiting for Fedora 11 final. I will keep Jaunty, though and quad-boot (Mint 7, Ubuntu 9.04, Fedora 10 and 11) :eek:
 
Actually when you do a new install you do not have a root user (password is not active). You need to do "$ sudo passwd root" and then you can kill the sudo.
 
I normally prefer cli, but the only reason I point out the Users and Groups GUI is because none of the Fedoras that I've used, have a "User Privileges" tab. Even with sudo enabled, a restricted user (e.g. does not belong to admin) can do very little. That kind of user cannot even run updates, sudo or no sudo.
 
And if you disable sudo how are you going to log in as root from within a normal session?

Last time I used *buntu the su command was non functioning?

the sudo passwd root creates the root user

EDIT: Your question made me think of something. The menu system for system tools assumes that the user is the sudoer group. so i guess i would have to edit the menu items to add gksu -w.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X