Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwarf-manage gives permission denied error when run as non-root #5

Open
tpot opened this issue Apr 23, 2015 · 0 comments
Open

dwarf-manage gives permission denied error when run as non-root #5

tpot opened this issue Apr 23, 2015 · 0 comments

Comments

@tpot
Copy link

tpot commented Apr 23, 2015

Should there be a better error message here?

debian@dwarf:~$ dwarf-manage db-dump
Traceback (most recent call last):
File "/usr/bin/dwarf-manage", line 102, in
level=logging.DEBUG)
File "/usr/lib/python2.7/logging/init.py", line 1540, in basicConfig
hdlr = FileHandler(filename, mode)
File "/usr/lib/python2.7/logging/init.py", line 911, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python2.7/logging/init.py", line 936, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/lib/dwarf/dwarf.log’

Maybe default logging to stdout with a warning saying that the log file couldn't be written to. I guess it depends on the permissions on the database file whether running db-dump as non-root even makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant