Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
To be able to run $ tail -F /var/log/pihole/pihole.log
as a regular user.
Actual Behaviour:
I get this error
$ tail -F /var/log/pihole/pihole.log
tail: cannot open '/var/log/pihole/pihole.log' for reading: Permission denied
Details
Hi
After the recent update I can't read /var/log/pihole/pihole.log
as a regular user.
I get this error
$ tail -F /var/log/pihole/pihole.log
tail: cannot open '/var/log/pihole/pihole.log' for reading: Permission denied
Before the update I was able to add this:
tail -F /var/log/pihole.log
to my regular user account's ~/.profile
and it would automatically follow /var/log/pihole.log
when I'd log in to my pihole system via ssh
.
The update changed the path to /var/log/pihole/pihole.log
but even with that it still doesn't work.
How can I follow /var/log/pihole/pihole.log
as a regular user? Thank you.
Journalctl also fails
$ journalctl -f --file /var/log/pihole/pihole.log
Failed to open files: Permission denied
The files permissions are
$ ls -l /var/log/pihole/pihole.log
-rw-r----- 1 pihole pihole 127319 Jul 8 12:16 /var/log/pihole/pihole.log
Other files' permissions
$ ls -l /var/log/pihole/
total 432
-rw-r--r-- 1 pihole pihole 8810 Jul 8 12:00 FTL.log
-rw-r--r-- 1 pihole pihole 1497 Jul 8 00:00 FTL.log.1
-rw-r--r-- 1 pihole pihole 417 Jul 7 00:00 FTL.log.2.gz
-rw-r--r-- 1 pihole pihole 302 Jul 6 00:00 FTL.log.3.gz
-rw-r----- 1 pihole pihole 127319 Jul 8 12:16 pihole.log
-rw-r--r-- 1 pihole pihole 121281 Jul 8 00:00 pihole.log.1
-rw-r--r-- 1 pihole pihole 18079 Jul 7 00:00 pihole.log.2.gz
-rw-r--r-- 1 pihole pihole 34382 Jul 6 00:00 pihole.log.3.gz
-rw-r--r-- 1 pihole pihole 29855 Jul 5 00:00 pihole.log.4.gz
-rw-r--r-- 1 pihole pihole 58114 Jul 4 00:00 pihole.log.5.gz
-rw-r--r-- 1 root root 4178 Jul 8 00:00 pihole_updateGravity.log
System details
Pihole details
Current Pi-hole version is v5.11.3
Current AdminLTE version is v5.13
Current FTL version is v5.16.1
I'm running Armbian 22.05.3 Buster with Linux 5.15.48-sunxi
$ cat /etc/armbian.txt
--------------------------------------------------------------------------------
Title: Armbian 22.05.3 Orangepipcplus current
Kernel: Linux
Build date: 22.06.2022
Builder rev: 13f5fba13c1
Maintainer: Igor Pecovnik <igor.pecovnik@****l.com>
Authors: https://www.armbian.com/authors
Sources: https://github.com/armbian/
Support: https://forum.armbian.com/
Changelog: https://www.armbian.com/logbook/
Documantation: https://docs.armbian.com/
--------------------------------------------------------------------------------