I want to see apache log file. This is what I tried:
I granted most all permissions to apache2 folder.
hieund@hieund:/var/log$ sudo chmod a+rw apache2/*
But I can't cd to it. So I add my user to group "root", "adm"
hieund@hieund:/var/log$ groups hieund
hieund : hieund root adm sudo www-data
But I still can't... It shows:
hieund@hieund:/var/log$ cd apache2/
bash: cd: apache2/: Permission denied
drwxrwxrw- 2 root adm 4096 2011-11-27 11:12 apache2
I'm so confused about it. How to see log files?