[KLUG Members] squid proxy log rotate error

Mike Williams knightperson at zuzax.com
Wed May 2 15:24:38 EDT 2007


bill wrote:
> the killall process is rwxr-xr-x
>
> One thought: being as the squid.logrotate script calls bash, does
> "nobody" need a shell?  It's set up as /sbin/nologin so I'm not sure it
> can invoke a shell.
>
>   
I think that's it.  "su -" tries to create an environment (path, shell,
etc) that the user would have if they logged in.  User nobody can't log
in, so that could be the problem.  See if it works taking out the first
dash.  That will run it as nobody without trying to log in as such.

> kind regards,
>
> bill
>
>   
>> bill wrote:
>>     
>>> I recently installed squid proxy and it is working.
>>>
>>> Overnight it was supposed to rotate the logs.
>>>
>>> I found this error message though:
>>>
>>> -----------------------------------------
>>> /etc/cron.daily/squid.logrotate:
>>>  
>>> This account is currently not available.
>>>
>>> -----------------------------------------
>>>
>>> The contents of that file are:
>>>
>>> #!/bin/sh
>>> su - nobody -c "/usr/bin/killall -USR1 squid >/dev/null 2>&1"
>>>
>>>
>>> Any idea what's going on?
>>>
>>> kind regards,
>>>
>>> bill
>>>   
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Members mailing list
>>> Members at kalamazoolinux.org
>>> 
>>>   
>>>       
>> _______________________________________________
>> Members mailing list
>> Members at kalamazoolinux.org
>> 
>>     
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Members mailing list
>> Members at kalamazoolinux.org
>> 
>>     



More information about the Members mailing list