help-cfengine
[Top][All Lists]
Advanced

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

Re: Setting ownership of home directories


From: Mark Burgess
Subject: Re: Setting ownership of home directories
Date: Fri, 25 Nov 2005 21:03:32 +0100

On Fri, 2005-11-25 at 11:55 -0800, Atom Powers wrote:
> I want to be able to set the owner/group of a directory based on the
> name of the directory. An example of this would be making user1 the
> owner of /home/user1 and user2 the owner of /home/user2.
> 
> It isn't practical to list every directory as a seperate "files"
> block. How can I set ownership by directory name using cfe?

See docs

http://www.cfengine.org/docs/cfengine-Reference.html#directories

        control:
     
       homedirs = ( mark:simen:luke:aeleen )
     
     directories:
     
       /home/$(listcontent) owner=LastNode





reply via email to

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