Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Archived > gmane.linux.redhat.fedora.general

gmane.linux.redhat.fedora.general gmane.linux.redhat.fedora.general newsgroup archive.

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-04-01, 10:00 AM CST
hicham
Guest
 
Posts: n/a
sudoer vs superuser

Hello

I would like to know if I give a user an ALL privilege in the /etc/sudoers
does he become a superuser than ?
isn't that risky ?

thanks

hicham.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #2  
Old 2005-04-01, 10:20 AM CST
Mike Klinke
Guest
 
Posts: n/a
Re: sudoer vs superuser

On Friday 01 April 2005 10:56, hicham wrote:
> Hello
>
> I would like to know if I give a user an ALL privilege in the
> /etc/sudoers does he become a superuser than ?
> isn't that risky ?
>



Take a look a "man sudo". Bop down to the "Caveats" section.

Regards, Mike Klinke

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #3  
Old 2005-04-01, 11:50 AM CST
Matthew Miller
Guest
 
Posts: n/a
Re: sudoer vs superuser

On Fri, Apr 01, 2005 at 04:56:10PM +0000, hicham wrote:
> I would like to know if I give a user an ALL privilege in the /etc/sudoers
> does he become a superuser than ?
> isn't that risky ?


The user is effectively superuser, yes. However, it's somewhat better, since
there's still an active step -- authenticating with your own credentials --
required to switch into privledged mode.

--
Matthew Miller mattdm@mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #4  
Old 2005-04-02, 11:30 AM CST
Jonathan Berry
Guest
 
Posts: n/a
Re: sudoer vs superuser

On Apr 1, 2005 12:41 PM, Matthew Miller <mattdm@mattdm.org> wrote:
> On Fri, Apr 01, 2005 at 04:56:10PM +0000, hicham wrote:
> > I would like to know if I give a user an ALL privilege in the /etc/sudoers
> > does he become a superuser than ?
> > isn't that risky ?

>
> The user is effectively superuser, yes. However, it's somewhat better, since
> there's still an active step -- authenticating with your own credentials --
> required to switch into privledged mode.
>


Well, it depends on how you set it up. You can set it up to where you
have to give *your* password, *root's* password (assuming sudo to
root, it's actually the password of whomever you are trying to
"become"), or *no* password to use sudo (I believe Fedora's default is
your password as Matthew said). Using your password or no password
essentially gives the user superuser access, but that does not mean
that the user is actually a superuser.
This makes things a little better than logging in as root. Logging in
as root is discouraged because of some security risks, such as running
complex (read: potentially vulnerable) programs due to being logged in
(such as any of the programs involved with running X), accidentally or
unknowingly running malicious code (something you downloaded, say),
and user error (oops, I really didn't want to run "rm -fr /"). As far
as these considerations go, using "sudo" is the same as using "su -",
so in this sense, the user is not a superuser.
A user with sudo privileges must use sudo to do anything that requires
superuser privileges, and this can be a little more secure because all
sudo activity is logged and the user does not need to know the root
password (if so configured). So if you trust the user, then it should
be safe to setup. If you require the users' password to use sudo,
then if someone comes along while the user is logged in and away from
the computer, they will still need a password to use sudo and have
superuser privileges. One problem is, the user can do "sudo su -" and
then have a root shell, the activities of which are not logged. To
echo Mike, look at "man sudo" for more considerations.

Jonathan

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #5  
Old 2005-04-02, 11:40 AM CST
hackmiester
Guest
 
Posts: n/a
Re: sudoer vs superuser

To simplify, basically the user has permission to run SINGLE commands as
root if he is on the sudoers list. This is safer because (to simplify again)
in order to kill off the system, he can't accidentally type rm -rf
/boot/vmlinuz-... . He has to precede it with sudo. He can still kill off
the system, but only intentionally. :-)

On Apr 2, 2005 12:27 PM, Jonathan Berry <berryja@gmail.com> wrote:
> On Apr 1, 2005 12:41 PM, Matthew Miller <mattdm@mattdm.org> wrote:
> > On Fri, Apr 01, 2005 at 04:56:10PM +0000, hicham wrote:
> > > I would like to know if I give a user an ALL privilege in the

/etc/sudoers
> > > does he become a superuser than ?
> > > isn't that risky ?

> >
> > The user is effectively superuser, yes. However, it's somewhat better,

since
> > there's still an active step -- authenticating with your own credentials

--
> > required to switch into privledged mode.
> >

>
> Well, it depends on how you set it up. You can set it up to where you
> have to give *your* password, *root's* password (assuming sudo to
> root, it's actually the password of whomever you are trying to
> "become"), or *no* password to use sudo (I believe Fedora's default is
> your password as Matthew said). Using your password or no password
> essentially gives the user superuser access, but that does not mean
> that the user is actually a superuser.
> This makes things a little better than logging in as root. Logging in
> as root is discouraged because of some security risks, such as running
> complex (read: potentially vulnerable) programs due to being logged in
> (such as any of the programs involved with running X), accidentally or
> unknowingly running malicious code (something you downloaded, say),
> and user error (oops, I really didn't want to run "rm -fr /"). As far
> as these considerations go, using "sudo" is the same as using "su -",
> so in this sense, the user is not a superuser.
> A user with sudo privileges must use sudo to do anything that requires
> superuser privileges, and this can be a little more secure because all
> sudo activity is logged and the user does not need to know the root
> password (if so configured). So if you trust the user, then it should
> be safe to setup. If you require the users' password to use sudo,
> then if someone comes along while the user is logged in and away from
> the computer, they will still need a password to use sudo and have
> superuser privileges. One problem is, the user can do "sudo su -" and
> then have a root shell, the activities of which are not logged. To
> echo Mike, look at "man sudo" for more considerations.
>
> Jonathan
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>



--
-hackmiester

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
  #6  
Old 2005-04-02, 01:00 PM CST
grumman Fan
Guest
 
Posts: n/a
Re: sudoer vs superuser

Please don't send HTML to the fedora list.
This is a plain text list.

If you can't figure out how to turn off html or other rich formattinmg
please ask.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #7  
Old 2005-04-03, 11:20 AM CDT
hicham
Guest
 
Posts: n/a
Re: sudoer vs superuser

thanks guys for this clarification,
I'm the user and the superuser of my machine , and I just want to get
things done like adsl connection , yum update without having each time
to type a sudo password:
may be i should can give user just limited privileges to make sure
I'm not going to "rm /" everything : )

thanks again
hicham.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #8  
Old 2005-04-03, 09:30 PM CDT
Jeff Vian
Guest
 
Posts: n/a
Re: sudoer vs superuser

On Sat, 2005-04-02 at 12:27 -0600, Jonathan Berry wrote:
> On Apr 1, 2005 12:41 PM, Matthew Miller <mattdm@mattdm.org> wrote:
> > On Fri, Apr 01, 2005 at 04:56:10PM +0000, hicham wrote:
> > > I would like to know if I give a user an ALL privilege in the /etc/sudoers
> > > does he become a superuser than ?
> > > isn't that risky ?

> >
> > The user is effectively superuser, yes. However, it's somewhat better, since
> > there's still an active step -- authenticating with your own credentials --
> > required to switch into privledged mode.
> >

>

snip
> superuser privileges. One problem is, the user can do "sudo su -" and
> then have a root shell, the activities of which are not logged. To
> echo Mike, look at "man sudo" for more considerations.
>


Anyone who sets up sudoers to allow that command should be shot.

The idea behind sudo is to allow those users who are trusted to have a
limited set of commands to run and to provide for tracking/auditing.

Allowing anyone to use sudo with ALL commands is the same as giving them
the root password (and only as secure as their user password). VERY
RISKY!

> Jonathan
>


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

  #9  
Old 2005-04-04, 12:20 AM CDT
Mattias Pettersson
Guest
 
Posts: n/a
SV: sudoer vs superuser

>Anyone who sets up sudoers to allow that command should be shot.
>The idea behind sudo is to allow those users who are trusted to have a
>limited set of commands to run and to provide for tracking/auditing.
>Allowing anyone to use sudo with ALL commands is the same as giving them
>the root password (and only as secure as their user password). VERY
>RISKY!


Hence why I said I wouldn't recommend it. For my own user (as in myself) I have it like that, but not without password. Without password I would only allow for very limited access. If my account would get hacked I wouldn't really like it to be to easy to gain root access. And 'sudo su -' is a wee bit overstated.. try 'sudo bash' or equivelent and you have a rootshell. If you have ALL = (ALL) that is.

Mattias

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudoer list marbob Installation Help 6 2008-09-03 10:06 AM CDT
Replace existing Superuser with new Superuser rocky2889 General Support 3 2005-09-06 10:33 PM CDT
Sudoer dejavu General Support 4 2005-09-05 06:03 AM CDT
Sudoer dejavu General Support 1 2005-09-05 05:51 AM CDT
Re: sudoer vs superuser Mattias Pettersson gmane.linux.redhat.fedora.general 0 2005-04-03 12:00 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:31 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations by vB Enterprise Translator 2.3.8