Only works with full path to cfengine.conf

Bug #39245 reported by Tero Karvinen on 2006-04-12
4
Affects Status Importance Assigned to Milestone
cfengine2 (Ubuntu)
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:
        actionsequence = ( files )
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.conf/update.conf have not yet been set up?

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)/cfengine.conf

More details in
http://myy.helia.fi/~karte/cfengine.html

Daniel T Chen (crimsun) wrote :

cfengine is no longer in Ubuntu repositories.

Changed in cfengine2:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers