Logview shoud use sudo

Bug #306021 reported by Shirish Agarwal
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-utils
Confirmed
Wishlist
gnome-utils (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-utils

I tried to view /var/log/apt/term.log through System > Administration > System Log . While it shows me all the logs shows if I try to see /var/log/apt/term.log it says /var/log/apt/term.log is not a log file.

the problem is caused because of not having the right permissions to see the files, gnome-system-log should use sudo for this.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: gnome-utils 2.24.1-0ubuntu1
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_IN
SourcePackage: gnome-utils
Uname: Linux 2.6.27-10-generic i686

Tags: apport-bug
Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
KevinM (kevbert1) wrote :

This bug also occurs in Hardy Heron 8.0.4.1 64 bit kernel 2.6.24-22 but works fine in Jaunty Jackalope 64 bit kernel 2.6.28-2. See also http://ubuntuforums.org/showthread.php?p=6325690 from post #5 onwards.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

do you have the right permissions to see the file ? could you ls -las on the the /var/log/apt/ directory and attach the output to the report? thanks.

Changed in gnome-utils:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 306021] Re: gnome-system-log tells /var/log/apt/term.log is not a log file

Hi Pedro,
 Thank you for getting back so quickly.

This is the output of ls -las on /var/log/apt

$ ls -las /var/log/apt/
total 84
 4 drwxr-xr-x 2 root root 4096 2008-12-08 00:48 .
 4 drwxr-xr-x 14 root root 4096 2008-12-09 08:20 ..
20 -rw------- 1 root root 16573 2008-12-09 08:32 term.log
56 -rw------- 1 root root 49825 2008-12-01 01:22 term.log.1.gz

In fact gnome-system-log should ask me for superuser's password which
it doesn't but that I guess is another bug.
--
          Regards,
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
KevinM (kevbert1) wrote : Re: gnome-system-log tells /var/log/apt/term.log is not a log file

Hi Pedro. Here's my outputs for the command:

*** Ubuntu 8.0.4.1 Failed to work ***
kevin@kevin-desktop:~$ ls -las /var/log/apt
total 96
 4 drwxr-xr-x 2 root root 4096 2008-12-07 20:14 .
 4 drwxr-xr-x 15 root root 4096 2008-12-09 08:03 ..
 8 -rw------- 1 root root 7508 2008-12-08 19:19 term.log
32 -rw------- 1 root root 31884 2008-11-29 12:25 term.log.1
 8 -rw------- 1 root root 5947 2008-10-30 08:32 term.log.2.gz
 8 -rw------- 1 root root 4149 2008-09-28 19:42 term.log.3.gz
32 -rw------- 1 root root 29185 2008-08-30 11:01 term.log.4.gz

*** Ubuntu 9.04 Working ***
kevin@Dt1b:~$ ls -las /var/log/apt/
total 68
 4 drwxr-xr-x 2 root root 4096 2008-12-07 09:37 .
 4 drwxr-xr-x 13 root root 4096 2008-12-09 09:33 ..
 4 -rw------- 1 root root 597 2008-12-07 09:57 term.log
56 -rw------- 1 root root 50394 2008-12-06 20:39 term.log.1.gz

Revision history for this message
Pedro Villavicencio (pedro) wrote :

If it doesnt work is because of the permissions, try changing the permissions and read the log file again, system log will let you see it. As Shirish said it should use sudo and that's a known bug upstream: http://bugzilla.gnome.org/show_bug.cgi?id=126051 ; I'll change the description of this bug and link to that one, thanks.

Changed in gnome-utils:
status: Incomplete → Triaged
description: updated
Changed in gnome-utils:
status: Unknown → Confirmed
Changed in gnome-utils:
importance: Unknown → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.