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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...