help-cfengine
[Top][All Lists]
Advanced

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

Re: home directive on RHS and without NFS


From: Brendan Strejcek
Subject: Re: home directive on RHS and without NFS
Date: Wed, 2 Jun 2004 18:24:16 -0500
User-agent: Mutt/1.3.28i

Steve Wray wrote:

> So, in other words, the home directive is totally useless without NFS?
> If so.... well it could be made clearer in the documentation.

Maybe mountpattern = ( / ) homepattern = ( home ) would work?

# ls -ld /tmp/u/{1,2,3}/junk
-rwxrwxrwx  1 root  staff  0 Jun  2 18:18 /tmp/u/1/junk
-rwxrwxrwx  1 root  staff  0 Jun  2 18:18 /tmp/u/2/junk
-rwxrwxrwx  1 root  staff  0 Jun  2 18:18 /tmp/u/3/junk
# cat home_directive.cf
#!/usr/local/sbin/cfagent -qKf

control: actionsequence = ( files )
mountpattern = ( /tmp )
homepattern = ( u )
files: home mode=o-w r=inf act=fixall inform=true
# ./home_directive.cf
cfengine:: Object /tmp/u/1/junk had permission 777, changed it to 775
cfengine:: Object /tmp/u/2/junk had permission 777, changed it to 775
cfengine:: Object /tmp/u/3/junk had permission 777, changed it to 775
# ls -ld /tmp/u/{1,2,3}/junk
-rwxrwxr-x  1 root  staff  0 Jun  2 18:18 /tmp/u/1/junk
-rwxrwxr-x  1 root  staff  0 Jun  2 18:18 /tmp/u/2/junk
-rwxrwxr-x  1 root  staff  0 Jun  2 18:18 /tmp/u/3/junk
# /usr/local/sbin/cfagent -V
GNU cfengine 2.1.6
Free Software Foundation 1994-
Donated by Mark Burgess, Faculty of Engineering,
Oslo University College, 0254 Oslo, Norway
This program is covered by the GNU Public License and may be
copied free of charge.  No warranty is implied.

# 




reply via email to

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