What that is doing is recursively applying read/write permissions for ALL users to everything in /var/lib/vnstat/
That will mean that literally ANYBODY logged into your system will be able to read and write to the files in /var/lib/vnstat/
Security-wise, this would be a BAD thing to do if you ask me.
If this is a multi-user system where there are several users - changing the permissions like this would mean that ANY other user could tamper with the files in /var/lib/vnstat/.
So from what I can see, this suggestion is a bad/hacky way of going about things!
However, if it's only you using the system - you probably could get away with using this little permissions hack to get around the problem. But I'm sure there's probably a better way to do it!
For example, this page tells you how to install vnstat on a debian system, but it does not require messing with any permissions:
On server it's useful to monitor, and collect, data about the use of your bandwidth, in the past I've wrote an article about "Monitor your bandwidth from the Linux shell" and I've also presented 4 useful tools that you can use to have a real time monitoring of the bandwidth: IPTState : This...
linuxaria.com
What Linux distro are you using?