permissions problem while reading log file
Tom H
tomh0665 at gmail.com
Thu Jan 17 23:29:35 UTC 2013
On Wed, Jan 16, 2013 at 3:15 PM, Abhishek Dixit <abhidixit87 at gmail.com> wrote:
>
> I want to read a log file to see if squid-deb-proxy server is running or not
> so I do
>
> tail: cannot open `squid-deb-proxy/access.log' for reading: Permission
> denied
>
> tail -f squid-deb-proxy/access.log
>
> hence
>
> I am tried to change permissions of a folder temporarily whose initial
> permissions are
>
> user at ubuntu:/var/log$ ls -l squid*
> squid3:
> total 4
> -rw-r----- 1 proxy proxy 0 Jan 16 14:43 access.log
> -rw-r----- 1 proxy proxy 1359 Jan 16 14:43 cache.log
> ls: cannot open directory squid-deb-proxy: Permission denied
>
> to some thing following
>
> user at ubuntu:/var/log$ sudo chmod -R 644 squid*
> user at ubuntu:/var/log$ ls -l squid*
> squid3:
> ls: cannot access squid3/cache.log: Permission denied
> ls: cannot access squid3/access.log: Permission denied
> total 0
> -????????? ? ? ? ? ? access.log
> -????????? ? ? ? ? ? cache.log
>
> squid-deb-proxy:
> ls: cannot access squid-deb-proxy/store.log: Permission denied
> ls: cannot access squid-deb-proxy/cache.log: Permission denied
> ls: cannot access squid-deb-proxy/access.log: Permission denied
> total 0
> -????????? ? ? ? ? ? access.log
> -????????? ? ? ? ? ? cache.log
> -????????? ? ? ? ? ? store.log
>
> If you notice after the change of permission there is question mark every
> where.Why is it happening so?
>
> I basically want to read the access log to see if squid-deb-proxy server is
> getting requests from client or not. How can I read the log in this case.
>
> I am doing so on Ubuntu 12.04
"/var/log/squid3" needs the execute bit set.
More information about the ubuntu-users
mailing list