help-cfengine
[Top][All Lists]
Advanced

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

Re: Problem copying to home directories using home directive


From: Mark . Burgess
Subject: Re: Problem copying to home directories using home directive
Date: Sun, 19 Sep 2004 09:36:31 +0200 (MEST)

Apologies for the delay in replying. I do not normally have time to reply to
this kind of query personally, but I kept this message in case there was a bug
to be examined. From the two messages you sent it looks as though you simply
made some wrong definitions. If you users are under /export/home then I would
write

mountpattern = ( /export )
homepattern = ( home )

You have "u1" for the dubdirectori in which the users live. That does not
seem to agree with the information in your other message.

regards
Mark

----------------------

>Hello

>Could someone tell me if this works or not . I already spent a couple of days 
>on it.

>From Reference Manual:

>The home directive can be used as a destination, in which case cfengine will 
>copy files to every user on the system.
>This is handy for distributing setup files and keeping them updated:
>copy:
>   /local/masterfiles/.cshrc  dest=home/.cshrc mode=0600

>Or am I wasting my time.

>This works

>  /local/masterfiles/.cshrc dest=/export/home/user1/.cshrc

>Thanks

>T.J.

On 20 May, DRANSUTAVICIUS, CLAUDIO wrote:
> 
> 
> Hello
> 
> I am using the home directive to copy files to each users home
> directory:
> Here is the code:
> 
> control:
> 
>   master_Userkeys = ( /var/Keys/userkeys )
> 
>    # Local convention for setting  home pattern directive
>    # e.g. /export/home/. Home dirs are u1,u2,u3,u?,ua,ub ...
>    #
> 
>    mountpattern = ( /export/home/ )
> 
>    # Match a name is users directory
> 
>    homepattern = ( u1 )
> 
> copy:
> 
>    any::
>    #
>    # Make sure each user has an up to date user key server
>    # setup.
>    #
> 
>    $(master_Userkeys)/new.key   dest=home/new.key  mode=0600
> 
> Here I would expect to get new.key copied over to /export/home/u1/
> 
> cfengine tries to think but nothing happens.
> 
> Where did I go wrong.
> 
> TJ
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




reply via email to

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