in reply to Re^2: Authen::Krb5 Problem
in thread Authen::Krb5 Problem

Thanks for the reply but its none of the above. There is plenty of space in that file system. However, lets not lose sight of the original problem. This only fails when it is run without a console (cron or at). Since the script runs in root's crontab I don't see how permissions can be a problem, particularly in /tmp.

Replies are listed 'Best First'.
Re^4: Authen::Krb5 Problem
by converter (Priest) on Nov 06, 2008 at 15:45 UTC

    Add code to your script that dumps the environment variables (sorted) to a file. Capture the outputs of successful and unsuccessful runs and diff the files. You'll probably find that the limited environment provided by cron and at is missing one or more environment variables that are required to allow kerberos clients to work correctly on your system. If this is the case, you can create a file that exports the missing variables and source it in the crontab entry.

      The only difference in environment variables that even has a long shot as far as I can tell is the shell. When run from command line it is using 'bash' and when running from 'cron' it is using 'sh'. Does perl even care? I thought perl runs in its own shell. Anyway, sourcing `. /etc/profile` in the script does not help.
        No, perl doesn't care. How did you check permissions?
Re^4: Authen::Krb5 Problem
by Anonymous Monk on Nov 06, 2008 at 12:26 UTC
    It has to be; how did you check?