How do i enable access for "/var/" directory?

My application stores the information in “/var/lib” directory while running tests but i get “OSError: [Errno 13] Permission denied: ‘/var/lib/trytond’” while circle is running tests.
How do i fix this?

The ubuntu user on a build container has paswordless sudo permissions. Are you able to run the commands prefixed with sudo?

Hey Tom, I forgot that the sudo has passwordless access. This is fixed now. Thanks!