Forum: Cfengine Help
Subject: Re: Edit selected files
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,17747,17870#msg-17870

For anyone interested the bug report I opened (0000190) was closed with no 
resolution.  It was stated that allowing a file_select with edit_line is "too 
big a hammer".

Excuse me, but couldn't the same statement be made about logging in as root?

The two proposed alternative solutions aren't sufficient:

1. Editing a list of knows files. 

The file names are unknown other than they start with a "." and are in user's 
base home directory (not subdirectories).

2. Editing a pattern (e.g., "/home/admin/.*/\..*").

This fills /var/cfengine/outputs with the utterly useless and unsuppressible 
message "Directory /home/admin/usera in search path /home/admin/usera/\..* is 
controlled by another user (uid 10105) - trusting its content is potentially 
risky (possible race)".

Very disappointing response for such a simple requirement, i.e., edit a user's 
"dot" files...

So, I've come up with yet another kluge work-around: a module that finds the 
files of interest and returns then in a variable.  Problem:  the maximum 
variable size evidently is 4k and the variable content is truncated.  
Additionally, the following unwanted messages are logged every time the module 
is called:

 
-> Executing '/var/cfengine/modules/FindDotFiles' 
...(timeout=-678,owner=-1,group=-1)
M "/var/cfengine/modules/FindDotFiles":
 -> Completed execution of /var/cfengine/modules/FindDotFiles


The never ending saga...

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to