UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I'd like to remove sudo - or at least, completely disable it so that I just use the conventional/traditional root and user methods for system admin and stuff like that.
Currently using Kubuntu dapper 6.06 and have found info about enabling the root account, but can't work out how to either remove or disable the sudo.
Could someone point me in the right direction please ??
you may have to switch distros to do that, they way some distros build the software out of sourcecode and the parameters they use during compiling would require rebuilding parts of the distro from scratch...
The problem isn't the sudo command. The root account is disabled. You don't need to disable sudo, just follow the instructions for enabling the root account. Using sudo isn't that hard though. If this is a second user account, you will want to make yourself a member of the "wheel" group and use "visudo" to edit the sudoers file.
You could also try, "sudo /bin/bash". I don't know if this will work however. Another thing to try is "kdesu konsole".
The problem isn't the sudo command. The root account is disabled. You don't need to disable sudo, just follow the instructions for enabling the root account. Using sudo isn't that hard though. If this is a second user account, you will want to make yourself a member of the "wheel" group and use "visudo" to edit the sudoers file.
You could also try, "sudo /bin/bash". I don't know if this will work however. Another thing to try is "kdesu konsole".
Using sudo might not be that hard, but I don't want to use it at all. I much prefer to have the sytem set so that any "admin mode" stuff requires the root password.
Some of the dialogue boxes that ask for a password won't accept the root password, only the user password of whichever user account the system is logged into at the time.
Sure, I understand that sudo has been used in the distro to "add" ease of use (well that's how it appears to me), but I don't want anyone else to be able to carry out admin functions, theres just too much that can be screwed up - I know, because it's usually me that screws it up
It's a bit irritating that it's only these minor "problems", but it's starting too really wind me up! - I suspect that in the near future, it'll annoy me to the point that I uninstall the Kubuntu completely - which I'd rather not do as it does seem very competent. As I say, just small annoyances.
I did change the groups thing, so that I'm in the "wheel" group as well, and had a look at the sudoers file with visudo, but couldn't work out what I might need to change. The "sudo /bin/bash" that you suggested worked fine. The "kdesu konsole" not so - but I don't understand what the difference would be.
So any other suggestions as to what I might need to change to disable sudo or just to make it so that only the root account can administrate the system would be very much appreciated.
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417
Rep:
Try this "You can make sudo ask for the root password instead of the user password, you can do this by adding the keyword rootpw to the line in /etc/sudoers that starts with Defaults" from this https://help.ubuntu.com/community/RootSudo
will set a root password to enable you to use "su" to administer system in the traditional way.
As far as I can see, apt-get recongised sudo as a dependency, and so will not allow you to remove it without removing ubuntu-desktop, etc. possibly editting the sudo users config file will disable for all users - or just leave it to give yourself choice.
Just as a matter of note: if you select "Recovery" in grub you get level 3 root without X for those time when sudo annoys you. I'm an old SuSE user so sudo was a bit annoying at first but now I find it quite acceptable. You can also write a Nautilus script that open a root Nautilus window. It quite handy and eliminates a lot of the requirements to go to a CLI terminal window.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.