Christian Kruse: Suche Michael Schröpl -> Verzeichnis auslesen!!!

Beitrag lesen

Hoi,

Hab das schon versucht,
apache läuft mit: user: wwwrun, group: nogroup
in der sudo steht der wwwrun drin,

Wie genau lautet der Eintrag?

der verlangt aber trotzdem beim erstenmal das root passwort???

Aus 'sudoers(5)':

authenticate
    If set, users must authenticate themselves via a password (or
    other means of authentication) before they may run commands. This
    default may be overridden via the PASSWD and NOPASSWD tags. This
    flag is on by default.

Weiterhin:

NOPASSWD and PASSWD

By default, sudo requires that a user authenticate him or herself
before running a command. This behavior can be modified via the
NOPASSWD tag. Like a Runas_Spec, the NOPASSWD tag sets a default for
the commands that follow it in the Cmnd_Spec_List. Conversely, the
PASSWD tag can be used to reverse things. For example:

ray    rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm

would allow the user ray to run /bin/kill, /bin/ls, and /usr/bin/lprm
as root on the machine rushmore as root without authenticating
himself.

Mit anderen Worten mit dem Tag 'NOPASSWD' kannst du die
Passwort-Abfrage abschalten:

wwwrun  localhost = NOPASSWD: /sbin/mount

Gruesse,
 CK