LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-09-2009, 05:00 PM   #1
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
How is SUDO more secure?


I know, I know...let me play devils advocate and spare me the explanation on how SUDO is more secure/flexable (because I already know)

Let's take Ubuntu's approach to SUDO and root...Ubuntu (and it's variants) disable the root password and rely strictly on SUDO for administrative tasks...

How is this *more* secure than having the root account enabled? (follow me for a sec)

With the root account enabled and using SU:

* I would have to guess a user password
* THEN guess the root password

With a disabled root account; and reliance on SUDO (the "Ubuntu way"):

*I just have to guess 1 password.

Logically speaking it's LESS secure because I have less "walls" in front of me...


-C

P.S.
I know I know I know..."you can enable the root account by..." just spare me...this is more of a discussion than a question

Last edited by custangro; 08-09-2009 at 05:07 PM.
 
Old 08-09-2009, 05:22 PM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by custangro View Post
With the root account enabled and using SU:

* I would have to guess a user password
* THEN guess the root password

With a disabled root account; and reliance on SUDO (the "Ubuntu way"):

*I just have to guess 1 password.
Assuming you'd like to gain the access to root's account in the first case it's enough to guess root's password -- exactly the same as in the second case.
 
Old 08-09-2009, 05:39 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Yep, also, with sudo you have a log of which account is being misused/cracked and so you can take steps when it's happening. If su does wrong, you only know that it's root, not who is acting as root.
 
Old 08-09-2009, 06:37 PM   #4
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
In properly configured systems sudo gives users access to precisely selected set of the commands and su with the root's password gives the access to all the commands. To give somebody the access to some restricted set of the commands is more secure than to give him the access to all the commands.

Ubuntu's approach to sudo isn't proper.*

----------
* It's my opinion -- your may be opposite.
 
Old 08-09-2009, 07:12 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Ubuntu doesn't "give users access to precisely selected set of the commands". Ubuntu gives access to ALL commands...
 
Old 08-09-2009, 07:14 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by custangro View Post
Ubuntu doesn't "give users access to precisely selected set of the commands". Ubuntu gives access to ALL commands...
Yes, but I believe that's more or less to give it a more Windows type of feel for the newly converted ex-Windows user. There are probably other things that many of us don't like about Ubuntu - but it does seem to help get new users into the Linux fold, so it can't be all bad.
 
Old 08-09-2009, 07:31 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
Ubuntu gives access to ALL commands...
Sure? Try making a second account.The first one is the administrator's so it kind of makes sense to grant it all privileges; not so for any additional accounts unless additional privileges are explicitly granted by the administrator.
Of course, you could argue that a system that uses su does not grant root privileges at all. As I have pointed out before, that is sophistry. If you install such a system, you enter a root password during install - so you'll know it anyway and you have access to everything all the same. Yep, maybe someone else can install the thing for the user but the same would apply to any distro that uses sudo instead.

Quote:
With the root account enabled and using SU:

* I would have to guess a user password
* THEN guess the root password

With a disabled root account; and reliance on SUDO (the "Ubuntu way"):

*I just have to guess 1 password.
Isn't it the other way round?? With su, you log on as "root" and you need to guess only the root password; with sudo, you have to find out the user's names first, then you have to determine the types of privileges they have and then you still need to obtain a password.

Last edited by jay73; 08-09-2009 at 07:34 PM.
 
Old 08-09-2009, 07:32 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by Quakeboy02 View Post
Yes, but I believe that's more or less to give it a more Windows type of feel for the newly converted ex-Windows user. There are probably other things that many of us don't like about Ubuntu - but it does seem to help get new users into the Linux fold, so it can't be all bad.
I agree. It makes it easier for new users to "convert" over...

But I think it's a "false" statement that most people say that Ubuntu is "more secure" because it disables the root account...because personally...I think it makes it LESS secure...

 
Old 08-09-2009, 07:41 PM   #9
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by custangro View Post
Ubuntu doesn't "give users access to precisely selected set of the commands". Ubuntu gives access to ALL commands...
So I wrote:

Quote:
Originally Posted by w1k0 View Post
Ubuntu's approach to sudo isn't proper.*

----------
* It's my opinion -- your may be opposite.
 
Old 08-09-2009, 07:46 PM   #10
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by w1k0 View Post
So I wrote:

Ubuntu's approach to sudo isn't proper.*
And I agree
 
Old 08-09-2009, 07:48 PM   #11
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by jay73 View Post

Isn't it the other way round??
No...with Ubuntu you only have to guess one password; whereas you would have to guess 2 passwords otherwise.
 
Old 08-09-2009, 07:52 PM   #12
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
I guessed some password once. The account name was ``shit'' and the guessed password ``crap'' (or inversely).
 
Old 08-09-2009, 08:10 PM   #13
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
whereas you would have to guess 2 passwords otherwise.
Oh, now I see what you mean. Log in as regular user, then become root. I hadn't thought of the first part; but then it would only apply if root log-ins are disabled.
 
Old 08-09-2009, 08:11 PM   #14
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
The account name was ``shit'' and the guessed password ``crap'' (or inversely).
parc?
 
Old 08-09-2009, 08:31 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by custangro View Post
I agree. It makes it easier for new users to "convert" over...

But I think it's a "false" statement that most people say that Ubuntu is "more secure" because it disables the root account...because personally...I think it makes it LESS secure...

And I would agree with you; assuming that you are in a multi-user system and don't grant ALL authority to any one user. However, most of us in a non-business single-user environment probably just allow ALL, so there are effectively 2 root users. Sure, we pretend that it's not the same as Ubuntu, but effectively, it is.

Last edited by Quakeboy02; 08-09-2009 at 08:32 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Problem with SUDO : sudo: pam_authenticate: Module is unknown cristoph_ Linux - Software 2 03-02-2009 07:12 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
secure root access with SUDO dussel Linux - Security 4 02-15-2006 08:26 AM
How do I use sudo for my LPA's in a secure manner lucky_dev36 Linux - Security 1 08-31-2005 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:47 PM.

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