Skip to content

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

@tpot

Description

@tpot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions