Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

By default, "Log File Viewer" is not launched from Unity as root in Ubuntu 11.04. This is pretty useless, as most of the log files are only readable by root.

How can I change this behavior so that it launches as root?

share|improve this question
Can you give some examples of files you can't view? I'm on 11.04, on the console and logged in as a sudoer, and I can view all log files. – Jo-Erlend Schinstad Sep 16 '11 at 8:48
@Jo-Erlend When I launch 'log file viewer', I get a message about not having permission to open "/var/log/btmp". Not surprising as that file does not belong to the "adm" group and neither do I. Other log files are accessible. It's strange, it's a few days ago now, but I thought I'd tried other log files before and failed.. Perhaps it's to do with an update that required a re-boot? I had a number of pending updates and have re-booted between now and then. – drevicko Sep 19 '11 at 4:25
up vote 1 down vote accepted

Backup and modify /usr/share/applications/gnome-system-log.desktop; change line:



Exec=gksu --description /usr/share/applications/gnome-system-log.desktop /usr/bin/gnome-system-log

Downside is that it will now always ask for a password.

share|improve this answer

You could also install a similar utility called glogg - It would make it easier to run as sudo

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.