You are not logged in.

#1 2008-02-08 22:50:32

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

[solved] how to configure sudo to work like ubuntu instead of type su?

Hi,

I installed sudo by typing "pacman -Sy sudo" however when I type, for example:

sudo gedit /etc/X11/xorg.conf

output is this:

[solano@localhost ~]$ sudo gedit /etc/X11/xorg.conf

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password:
[solano@localhost ~]$

and not open the gedit sad

anybody can help me?

Last edited by solanoalves (2008-02-08 23:21:16)


big_smile How did you know? I love this song! big_smile

Offline

#2 2008-02-08 22:58:09

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

First, you must be a member of the group 'wheel'.

# gpasswd -a yourusername wheel

Then, edit the sudoers file as root. (You'll need to use vi/vim)
# visudo

Enjoy. smile

Offline

#3 2008-02-08 23:07:34

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

This wiki page might give you some help:
http://wiki.archlinux.org/index.php/Sudo

Misfit138 wrote:

First, you must be a member of the group 'wheel'.

This isn't actually necessary but it is one way of configuring sudo, could be done in other ways which doesn't depend on the wheel group.

Offline

#4 2008-02-08 23:20:58

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

thanks guys!! it worked!


big_smile How did you know? I love this song! big_smile

Offline

#5 2008-02-08 23:25:50

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

simply add user to sudo
you can also add application and set it to run without password

Offline

#6 2008-02-08 23:39:53

solanoalves
Member
From: Curitiba Brazil
Registered: 2007-12-02
Posts: 54

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

very dangerous without password sad


big_smile How did you know? I love this song! big_smile

Offline

#7 2008-02-09 01:30:42

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: [solved] how to configure sudo to work like ubuntu instead of type su?

solanoalves wrote:

very dangerous without password sad

on the contrary:
1. prevents (root) password transmission
1a. pam ^ option to use su without providing password
2. no need to give everybody root password (which defies whole point of security)
3. easy to revoke (the only way to revoke once given root password is to change it, better not to give it at all) by removing user from sudo
4. easier administration

whole point of security is to lower, not enhance privileges.
you can configure a lot of daemons to run without root privileges.

root is a god, one god per computer is more than enough wink

Last edited by broch (2008-02-09 01:33:52)

Offline

Board footer

Powered by FluxBB