help-cfengine
[Top][All Lists]
Advanced

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

Re: "files" question


From: Tim Nelson
Subject: Re: "files" question
Date: Wed, 24 Mar 2004 09:51:45 +1100 (EST)

On Mon, 22 Mar 2004, Bryan S. Blank wrote:

> % files:
> %     /var/cache/squid/01
> %             owner=squid
> %             group=squid
> %             action=fixall
> %
> %     The problem with this is that, even though the shellcommands is
> % executed before the files section, the files section is parsed before the
> % shellcommands.  This means that the owner has already been set to -1
> % (since there was no squid user until squid was installed).
> %     Is there a way around this?
>
>       inelegant, but perhaps set owner and group to the numeric uid and gid
>       (i.e. owner=8080 group=8080)

        ...except I don't know the user ID until squid has been installed
:).

> ... or more elegantly, in control, set
>       squiduid = ( 8080 ) / squidgid = ( 8080 ) and then reference
>       $(squiduid) and $(squidgid) in your installation and files actions.

        ...same problem :).

--
Tim Nelson
Systems Administrator
Sunet Internet
Tel: +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au






reply via email to

[Prev in Thread] Current Thread [Next in Thread]