PDA

View Full Version : [ubuntu] can open sudo tail -F /var/log/squid/access.log


Myronray
September 15th, 2009, 12:15 AM
hey cant open the the access.log how to change permission to this file, anybody help

thanks

falconindy
September 15th, 2009, 12:30 AM
I suspect if you did an `ls -l /var/log/squid/access.log` that the owner (root) would have read access already, but you can be certain of this by doing:
sudo chmod o+r /var/log/squid/access.log
Some commands are a little funky if you're running them through sudo and not actually at a root prompt. Have you tried that?

Myronray
September 15th, 2009, 12:49 AM
I suspect if you did an `ls -l /var/log/squid/access.log` that the owner (root) would have read access already, but you can be certain of this by doing:
sudo chmod o+r /var/log/squid/access.log
Some commands are a little funky if you're running them through sudo and not actually at a root prompt. Have you tried that?

im gonna try now hehe

Myronray
September 15th, 2009, 12:57 AM
i check the permission it shows
root@myron:/# ls -l /var/log/squid/access.log
-rw-r--r-- 1 proxy proxy 0 2009-09-15 11:20 /var/log/squid/access.log


falcon still no luck i follow your code but does not work :(
sudo chmod o+r /var/log/squid/access.log
then i tail -f access.log again does not open ohhh my

windependence
September 15th, 2009, 01:10 AM
Try:

sudo chmod 755 /var/log/squid/access.log
sudo chown root:root /var/log/squid/access.log

-Tim