Saratov Linux User Group
 help / color / mirror / Atom feed
From: linderoxxx <linderoxxx@mail.ru>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] squid СРОЧНО
Date: Wed, 26 Mar 2008 15:43:51 +0300
Message-ID: <47EA4507.6050503@mail.ru> (raw)
In-Reply-To: <47EA42FE.5070205@gmail.com>

Конюков Александр wrote:
> linderoxxx пишет:
>> Конюков Александр wrote:
>>> linderoxxx пишет:
>>>> Конюков Александр wrote:
>>>>> linderoxxx пишет:
>>>>>
>>>>>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>>>>>        The parent directory must be writeable by the
>>>>>>        user 'squid', which is the cache_effective_user
>>>>>>        set in squid.conf.
>>>>>
>>>>> Ларчик просто открывался :)))
>>>>>
>>>>>
>>>> Спасибо , но не всё еще интереснее...
>>>> что за права на access.log? что значит "P" в prw-rw-rw?
>>>> и вы видите вчера последняя запись вечером была...не пойму почему...
>>>>
>>>> master@local ~ $ ls -al /var/log/squid/
>>>> total 809587
>>>> drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..
>>>
>>> прикол не в правах на файл, а в правах на вышестоящую директорию, о 
>>> чем вам пишет лог ))
>> проблема помоему в том, что squid из выше написанного мною ps aux
>> запускается от рута...а когда squid пытается запуститься от самого 
>> себя, то он видит уже запущенный squid... как мне все поправить и гдЕ?
>
> имхо, стоит поправить права на /var/log/squid
> [root@edu log]# ls -l | grep squid
> drwxrws--T 2 root  squid     4096 Mar 23 04:04 squid
>
> и права на файлики:
> [root@edu squid]# ls -l
> total 114796
> -rw-rw---- 1 root squid 71435047 Mar 26 15:33 access.log
> -rw-rw---- 1 root squid   293538 Mar 26 15:32 cache.log
>
>
все сделал что Вы написали:

master@local ~ $ ps aux | grep squid
root     10868  0.0  3.5  32708 27292 ?        Ss   16:38   0:00 
/usr/sbin/squid -D
squid    10870  0.1  3.7  33228 28656 ?        S    16:38   0:00 (squid) -D
root     11340  0.0  3.5  32708 27292 ?        Ss   16:42   0:00 
/usr/sbin/squid #-DYC
squid    11342  6.4  3.7  33336 28764 ?        S    16:42   0:00 (squid) 
#-DYC
master   11349  0.0  0.0   2652   660 pts/2    R+   16:42   0:00 grep squid



  reply	other threads:[~2008-03-26 12:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 12:05 linderoxxx
2008-03-26 12:07 ` Конюков Александр
2008-03-26 12:18   ` linderoxxx
2008-03-26 12:20     ` Конюков Александр
2008-03-26 12:26       ` linderoxxx
2008-03-26 12:35         ` Конюков Александр
2008-03-26 12:43           ` linderoxxx [this message]
2008-03-26 12:50             ` Конюков Александр
2008-03-26 12:59               ` linderoxxx
2008-03-26 13:35               ` linderoxxx
2008-03-26 13:32     ` Genix
2008-03-26 13:37       ` Конюков Александр
2008-03-26 19:51     ` Paul P Komkoff Jr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47EA4507.6050503@mail.ru \
    --to=linderoxxx@mail.ru \
    --cc=sarlug@lists.lug.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git