Can sudo be removed?

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Post Reply
BHReach
Growing Hen
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Can sudo be removed?

Post by BHReach » Thu Jan 31, 2008 20:50

Can sudo be removed from Sabayon without breaking anything?
Bill

Fitzcarraldo
Sagely Hen
Posts: 8218
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: Can sudo be removed?

Post by Fitzcarraldo » Fri Feb 01, 2008 18:09

You mean as in stopping people using the sudo command? You could disable it by reversing the procedure described in the SL Wiki for enabling the use of sudo:

http://wiki.sabayonlinux.org/index.php? ... nable_sudo

BHReach
Growing Hen
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: Can sudo be removed?

Post by BHReach » Sat Feb 02, 2008 7:39

>>You mean as in stopping people using the sudo command? You could disable it by reversing the procedure described in the SL Wiki for enabling the use of sudo:<<

No, I mean can I unmerge it without breaking anything.

Some distros (e.g., Ubuntu) have sudo so tightly integrated into the OS, it cannot be easily removed.

Using sudo is a security risk and I have no use for it. IMO, it has no place on a single user desktop system.

Here is an article that explains the security issues:

Using sudo to Keep Admins Honest? sudon't!
(http://www.enterprisenetworkingplanet.c ... hp/3641911)

Bill

rand.a
Growing Hen
Posts: 163
Joined: Fri Mar 23, 2007 20:08
Location: Shelton, WA
Contact:

Re: Can sudo be removed?

Post by rand.a » Sun Feb 03, 2008 2:02

you can remove sudo if you want, this isnt ubuntu. you may want to review what apps depend on sudo by running 'equery depends sudo' before removing it though.

sudo managed properly is not a risk though, and of course you would never want to give any user access to it that you dont trust 100%. i prefer to give users sudo access to only certain commands, without allowing them to enter a root shell.

BHReach
Growing Hen
Posts: 193
Joined: Thu Jan 31, 2008 20:40

Re: Can sudo be removed?

Post by BHReach » Mon Feb 04, 2008 18:15

Thanks, that is what I wanted to know.

You are using sudo in the way in was intended.

Using sudo as a substitute for

su -c "command"

the way Ubuntu et al do, makes absolutely no sense.

Bill

xadawa
Baby Hen
Posts: 4
Joined: Wed Jul 25, 2007 19:17

Re: Can sudo be removed?

Post by xadawa » Mon Feb 04, 2008 19:17

Hi,
you can disable sudo if you make like this :

chmod 777 /etc/sudoers && echo "" > /etc/sudoers && chmod 440 /etc/sudoers

Have fun ;)

Post Reply