Only works with full path to cfengine.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cfengine2 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Cfengine does not work without full path when using sudo. This is contrary to what 'man cfagent' says. Also, the error message is misleading.
To reproduce
1) $ sudo apt-get install cfengine2
2) $ nano cfengine.conf
control:
files:
/tmp/sample mode=000 action=fixall
3) $ sudo cfagent -f cfengine.conf
What happens:
cfengine:::0: Warning: actionsequence is empty
cfengine:::0: Warning: perhaps cfagent.
What should have happened:
1) It should work without full path. According to manpage, it should even work without filename if cfengine.conf is in the same directory.
2) It should give a better error message: "File /root/cfengine.conf not found. Use -f to give full path to cfengine.conf"
Bypass:
$ sudo cfagent -f $(pwd)/
More details in
http://
cfengine is no longer in Ubuntu repositories.