[KLUG Members] squid proxy log rotate error
bill
bill at billtron.com
Wed May 2 09:30:47 EDT 2007
Hello,
On Tue, 2007-05-01 at 23:55, Mike Williams wrote:
> The most obvious answer is that your "nobody" account doesn't exist.
It's in /etc/passwd
> It's also possible that "nobody" exists, but doesn't have access to
> something that the script needs. Maybe the log files,
The log files are owned by "nobody"
> or maybe squid is
> not running as user nobody, so user nobody can't killall the squid
> processes.
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.
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
>
--
PGP/GPG Public Key: https://billtronservices.com/key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20070502/83cfa02d/attachment.bin
More information about the Members
mailing list