LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-25-2006, 03:48 AM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
sudo annoyances


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 ??

regards

John
 
Old 06-25-2006, 04:23 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
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...
 
Old 06-25-2006, 04:33 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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".
 
Old 06-25-2006, 05:08 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by jschiwal
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.

regards

John
 
Old 06-25-2006, 05:14 AM   #5
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
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
 
Old 06-25-2006, 06:25 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Take a look at my post in this thread.
 
Old 06-25-2006, 05:35 PM   #7
kwacka
Member
 
Registered: Dec 2003
Posts: 77

Rep: Reputation: 15
"sudo passwd root"

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.
 
Old 06-25-2006, 06:10 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
You can safely remove ubuntu-desktop--it's only a metapackage that points to the default applications.

By the way, Mepis 6 will be based on Ubuntu, but it has a traditional root/user setup instead of sudo.
 
Old 06-25-2006, 06:12 PM   #9
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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.
 
Old 06-25-2006, 08:33 PM   #10
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
If you're in a terminal and don't feel like typing sudo in front of every command, just type
Code:
sudo -s
and you'll be root.

If you want to browse graphically as root, create a launcher or keyboard shortcut for (or just press Alt-F2 and then type)
Code:
gksudo nautilus
for Gnome or
Code:
kdesu konqueror
for KDE.
 
  


Reply

Tags
kubuntu, sudo, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
gnome 2.6 annoyances Kristian2 Slackware - Installation 0 07-18-2004 04:26 AM
mplayer annoyances bulliver Linux - Software 2 04-21-2004 03:25 PM
couple of annoyances e1000 LQ Suggestions & Feedback 8 02-01-2004 12:02 PM
Gnome annoyances... sardaukar_siet Linux - Newbie 6 03-25-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration