wrong database file ownership

Bug #1285706 reported by Francois Trahan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vnstat (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

ubuntu 13.10 amd64
vnstat 1.11-2

Problem:
Database files created by "vnstat -u -i NEW_IF" (/var/lib/vnstat/NEW_IF) are owned by root, the vnstat user cannot write to them.

Symptoms:
After adding a database, you always get the "Not enough data available yet." even if vnstat works perfectly in live mode (vnstat -i NEW_IF -l)

Workaround:
Run those commands:
- chown vnstat:vnstat /var/lib/vnstat/NEW_IF
- vnstat -u -i NEW_IF

Tags: vnstat
Revision history for this message
Michisteiner (michisteiner) wrote :

with vnstat 1.12 (as in 14.10 and later) vnstat changes the user id during startup to whatever is defined as DaemonGroup and DaemonUser in /etc/vnstat.conf. Hence, the proper way would be to
(0) upgrade to vnstat 1.12 (if not already done)
(1) change in /etc/vnstat.conf DaemonUser and DaemonGroup from "" to "vnstat", and
(2) in /lib/systemd/system/vnstat.service or /etc/init.d/vnstat depending on start-up system user from "vnstat" to "root"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vnstat (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.