[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Missing file gives bad error message
From: |
Christian Pearce |
Subject: |
Missing file gives bad error message |
Date: |
Thu, 15 Apr 2004 19:08:38 GMT |
>From the client I get:
cfengine:: (Can't stat /var/cfengine/inputs\cf.bigbrother)
cfengine:: Server returned error: Host authentication failed. Did you forget
the domain name or IP/DNS address registration (for ipv4 or ipv6)?
On the Server I get:
Apr 15 14:51:27 pearcec cfservd[25953]: Couldn't stat filename
/var/cfengine/inputs\cf.csc_nicstatus from host commnav-win2k.commnav.com
Apr 15 14:51:27 pearcec cfservd[25953]: lstat
Apr 15 14:51:27 pearcec cfservd[25953]: Host authorization/authentication
failed or access denied
Apr 15 14:51:27 pearcec cfservd[25953]: From
(host=commnav-win2k.commnav.com,user=Administrator,ip=209.50.130.37)
Apr 15 14:51:27 pearcec cfservd[25953]: ID from connecting host: (SYNCH
1082055332 STAT /var/cfengine/inputs\cf.csc_nicstatus)
I was thinking this whole time I had a problem with communications, where I
believe the problem is the file it is trying to access doesn't exist. Which in
this case the windows box is mangling the filename.
Is there any reason we can't put file doesn't exist? Or is this a security
thing? (ie. don't give out information to a potential attacker)
--
Christian Pearce
http://www.commnav.com
Brendan Strejcek said:
>
> Billy Allan wrote:
>
> > On another note though, I was wondering if it might be useful to be able
> > to embed small scripts in an arbitory scripting language
> > (shell/perl/python/whatever) in a conf file and have cfengine call the
> > interpretor.
> >
> > Something like :
> >
> > perl = ( /apps/perl )
> > sh = ( /bin/sh )
> >
> > ...
> >
> > scripts:
> > solaris.Hr00.Min0_5::
> > perl {
> > for ($i = 0; $i < 10; $i++) {
> > print "hello world\n";
> > }
> > }
> >
> > patch_server.Hr00.Min0_5::
> > sh {
> > cd /export/patches/
> > /apps/wget ftp://some.site.com/8_Recommended.zip
> > /apps/unzip -q 8_Recommended.zip
> > }
>
> cfengine actually already has this functionality, though it is sort of
> a hack. You can use multiline shellcommands. For example:
>
> control:
>
> actionsequence = ( shellcommands )
>
> perl_bin = ( ExecResult(/usr/bin/which perl) )
>
> shellcommands:
>
> "${perl_bin} -e '
> for (${dollar}i = 0; ${dollar}i < 10; ${dollar}i++) {
> print \"hello world\n\";
> }'
> "
>
> This is not taht different that what you wrote above. The only problem
> is making sure that cfagent's variable interpolation does not mess up
> the final script passed to the interpreter. Hence the ${dollar}.
>
> I actually use little bits like this frequently.
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
>
- Missing file gives bad error message,
Christian Pearce <=