permissions problem while reading log file
Abhishek Dixit
abhidixit87 at gmail.com
Wed Jan 16 20:15:47 UTC 2013
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
--
-------------------------
Abhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130117/c6809aca/attachment.html>
More information about the ubuntu-users
mailing list