[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
user adding and "files"
From: |
John Borwick |
Subject: |
user adding and "files" |
Date: |
Thu, 14 Oct 2004 14:33:11 -0400 |
User-agent: |
Mozilla Thunderbird 0.7.3 (X11/20040901) |
When I add a user and use that username somewhere later in the script,
cfengine doesn't know about the user. If I run the script a second
time, of course, the user is known.
For the following script:
__BEGIN__
control:
actionsequence = ( shellcommands files )
shellcommands:
"/usr/sbin/useradd test"
files:
/tmp/test
owner=test
r=inf
act=fixall
__END__
The user "test" is not known to the "files" section. See the message
"setting to -1":
*********************************************************************
Main Tree Sched: shellcommands pass 1 @ Thu Oct 14 14:29:58 2004
*********************************************************************
cfengine:: Executing script /usr/sbin/useradd
test...(timeout=0,uid=-1,gid=-1)
(Setting umask to 77)
cfengine:: Finished script /usr/sbin/useradd test
*********************************************************************
Main Tree Sched: files pass 1 @ Thu Oct 14 14:29:58 2004
*********************************************************************
Checking file(s) in /tmp/test
cfengine:: touching /tmp/test
cfengine:: Owner of /tmp/test was 0, setting to -1
cfengine:: touching /tmp/test/t
cfengine:: Owner of /tmp/test/t was 0, setting to -1
Saving the setuid log in /var/cfengine/cfagent.f4n35.wfunet.wfu.edu.log
---------------------------------------------------------------------
__END__
Why is this? Are there any workarounds?
Yours,
John
--
John Borwick
System Administrator
Wake Forest University | web http://www.wfu.edu/~borwicjh
Winston-Salem, NC, USA | GPG key ID 0x797326D5
signature.asc
Description: OpenPGP digital signature
- user adding and "files",
John Borwick <=