Re: Perl script doen't work for a specific user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2004-06-24 at 04:43, Patrick Nelson wrote:
> FC1
> 
> I set up a script that calls sa-learn (from spamassassin)  on one FC1
> system this works just fine but on another system is errors.  Here is
> the basic call:
> 
> su filter -c "sa-learn --spam <mailbox>"
> 
> The systems are identical except for something that fails on the one
> system.  If I log into the system as filter like:
> 
> su -l filter
> 
> and then try and just run sa-learn I get a bunch of errors like:
> 
> Can't locate Mail/SpamAssassin/CmdLearn.pm in @INC (@INC contains:
> This seems to be so for all users but root.  What would be controlling
> this?  Any ideas would help...
> 

The first few things to verify is that the packages for spamassassin are
installed correctly.  Check versions as well.

The message above seems to indicate a possible path or permissions
problem.

Since you have one system that works and one that doesn't then you can
compare both setups to see what is different.  Start by looking for the
CmdLearn.pm file.  Here it is owned by root and has 644 permissions.

-- 
Scot L. Harris
webid@xxxxxxxxxx

If I could drop dead right now, I'd be the happiest man alive!
		-- Samuel Goldwyn 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux