[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: r73438 - in trunk/src/debian-edu-config: cf debian



hi all,

On Di 07 Jun 2011 13:57:42 CEST Holger Levsen wrote:

On Sonntag, 5. Juni 2011, Andreas B. Mundt wrote:
> Modified:
>    trunk/src/debian-edu-config/cf/cf.ldapserver

> -    "/usr/bin/ldap-debian-edu-install"
> +    "/usr/bin/ldap-debian-edu-install" owner=root group=root

How could all other cf-scrips work if executed as "nobody" before?
I cannot imagine this is necessary (and thus just confusing).

can someone explain?

cfengine by default executes scripts as owner=-1, group=-1. If you want to perform tasks with root privileges (db_get, db_set), then you have to become root for this special cfengine task.

Why the other scripts do work, I have no clue. The only thing I know is that it made a difference when debugging the cfagent calls during installation. But maybe I am wrong about this.

Greets,
Mike


--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpYRWtsd3W6L.pgp
Description: Digitale PGP-Unterschrift


Reply to: