help-cfengine
[Top][All Lists]
Advanced

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

how do I create home subdirs with correct owner?


From: Tom Schutter
Subject: how do I create home subdirs with correct owner?
Date: Mon, 26 Jan 2004 16:54:57 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031221 Thunderbird/0.4

I am running cfengine as root, and trying to create a special directory in everyone's home directory. But what I cannot figure out is how to get the ownership correct. Here is my config:

control:
  mountpattern = ( / )
  HomePattern = ( home )
  actionsequence = ( directories )

directories:
  home/.baz
    mode=700

So if my directory tree looks like this:
/home
/home/foo (owned by foo)
/home/bar (owned by bar)

I get:
/home
/home/foo (owned by foo)
/home/foo/.baz (owned by root)
/home/bar (owned by bar)
/home/bar/.baz (owned by root)

What I want is /home/foo/.razor to be owned by foo, not root.

Thanks,
--
Tom Schutter (mailto:tom@platte.com)
Platte River Associates, Inc. (http://www.platte.com)




reply via email to

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