CentOS - Passwortabfrage für root, obwohl user in sudoers.

G

Gast123

Hallo Leute,

wenn ich unter CentOS 6.3 / Gnome 2 grafisch administrative Augaben ausführen möchte, wie zum Beispiel, Software installieren, dann werde ich stets nach dem root-Passwort gefragt.
Ich bin jedoch berechtigt, sudo-Befehle auszuführen (Mitglied der Gruppe wheel und entsprechende Konfiguration der /etc/sudoers).
Wenn ich dies unter Fedora so konfiguriere, dann fragt mich die GUI nach meinem eigenen Passwort (da ich ja über sudo root-Berechtiungen erlangen kann).
Wie kann ich CentOS 6 dazu bringen, mich also nach meinem Passwort, statt nach dem root-Passwort bei entsprechenden Aufgaben zu fragen?

Danke Euch,

Schard
 
Hi,

erster Verdacht "targetpw" in der /etc/sudoers
Code:
targetpw        If set, sudo will prompt for the password of the user
                       specified by the -u option (defaults to root) instead
                       of the password of the invoking user.  Note that this
                       precludes the use of a uid not listed in the passwd
                       database as an argument to the -u option.  This flag is
                       off by default.

mfg
HeadCrash
 
@HeadCrash

Das scheint es nicht zu sein, denn targetpw kommt in meiner /etc/sudoers nicht vor. :think:
 
Moin,

das ganze müsste ja über gksu /gksudo laufen, daher ein zweiter Ansatz:
Code:
GKSU(1)                                                                 User Commands                                                                 GKSU(1)

NAME
       gksu - GTK+ frontend for su and sudo

SYNOPSIS
       gksu

       gksu [-u <user>] [options] <command>

       gksudo [-u <user>] [options] <command>

DESCRIPTION
       This manual page documents briefly gksu and gksudo

       gksu  is a frontend to su and gksudo is a frontend to sudo.  Their primary purpose is to run graphical commands that need root without the need to run
       an X terminal emulator and using su directly.

       Notice that all the magic is done by the underlying library, libgksu. Also notice that the library will decide if it should use su or sudo as  backend
       using  the  /apps/gksu/sudo-mode  gconf  key,  if  you  call  the gksu command. You can force the backend by using the gksudo command, or by using the
       --sudo-mode and --su-mode options.

       If no command is given, the gksu program will display a small window that allows you to type in a command to be run, and to select what user the  pro‐
       gram should be run as. The other options are disregarded, right now, in this mode.

Lässt sich zumindest hier unter Ubuntu scheinbar mit "gksu-properties" ändern.
Code:
gksu-properties(1)                                                                                                                         gksu-properties(1)

NAME
       gksu-properties - Configure the behaviour of gksu

SYNOPSIS
       gksu-properties

DESCRIPTION
       This manual page documents briefly the gksu-properties command.

       gksu-properties allows you to define how gksu(1) grants the privileges and locks your input devices (mouse, keyboard...).

mfg
HeadCrash
 
@HeadCrash:

Nope, weder gksu, noch gksudo sind auf dem System installiert. :think:
 
Hmm dann muss ich passen :(,

habe nur grade noch das hier gefunden. Das bezieht sich allerdings auf CentOS 5 von dahher keine Ahnung ob das passt.

mfg
HeadCrash
 
Zurück
Oben