Only works with full path to cfengine.conf

Bug #39245 reported by Tero Karvinen
4
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:
        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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.