LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Accessing Squid logs (https://www.linuxquestions.org/questions/linux-general-1/accessing-squid-logs-613584/)

jonnoc 01-14-2008 08:10 PM

Accessing Squid logs
 
Hi,
I am trying to access my squid logs on ubuntu 7.10 desktop but aparently I dont have permission to access. The owner of the folder in var/log/squid is called proxy and the group is also called proxy. However i can not find any trace of a proxy group in the 'users and group' management part of ubuntu. Am i going about all this wrong or is there a special way to access the log??
Any suggestions would be great.
Many Thanks,
John.

gilead 01-14-2008 08:25 PM

Although you can add yourself to the proxy group in /etc/group, you don't have to. You can use sudo instead (substitute whatever text editor you prefer if you don't use vi or its derivatives:
Code:

sudo vim /var/log/squid/access.log
PS I don't remember the ubuntu graphical sudo tool's name - but I'm pretty sure it exists and you could use it instead of sudo in a terminal window.

xyrer 01-16-2008 08:33 AM

You can use gksudo gedit /var/squid/log/squid.log

The problem comes with sarg, many users most of the time produces a *stack smashing detected* but reading the logs as they are is no problem.


All times are GMT -5. The time now is 12:31 AM.