Jump to content

Viewing security.log in Log File Viewer?


mittfh
 Share

Recommended Posts

Here's a nice quick query:

 

Is it possible to get security.log to display in the log file viewer?

 

It appears to be readable only by root, so unsurprisingly log viewer (running with 'ordinary' user permissions) won't touch it.

 

I could open a terminal, then open it via sudo, but it would be nice to have a more user friendly way of taking a peek after the daily MSEC check :)

Link to comment
Share on other sites

You could add yourself to the 'adm' group. This group was intended so that members of it could view the system logs without being root; by default some (not all) logs in /var/log have adm as group. Obviously having access comes with responsibility, so you might as well do the occasional sudo if needed.

Edited by pindakoe
Link to comment
Share on other sites

You could add yourself to the 'adm' group. This group was intended so that members of it could view the system logs without being root; by default some (not all) logs in /var/log have adm as group. Obviously having access comes with responsibility, so you might as well do the occasional sudo if needed.

 

So if I grabbed hold of a Gnome graphical sudo interface thingy, could I use that to launch to log file viewer with root permissions?

 

My machine is single (human) user, but it's nice to have a modicum of security - both for prevent me accidentally trashing the system and for the unlikely event of me having visitors around long enough to allow them to play around with my computer, in which case I'd set them up with a (heavily restricted) account.

Link to comment
Share on other sites

Yes you can, but it will require editing /etc/sudoers to grant you permission to access the log-files. I cannot claim that I understood this file's syntax well (even though I learnd programming in a time when no book/course went without BNF-definition of the language, so you'll best google and/or man sudoerds to learn.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...