** Description changed:

  Binary package hint: acct
+ 
+ SRU JUSTIFICATION:
+ 
+ Without changes, acct reporting utilities are unusable with their
+ default use without parameters; since they expect a data file in an
+ incorrect path. The patch is minimal and with low impact (just path
+ changes for default filenames).
+ 
+ TEST CASES:
+ 
+ 1) install acct
+ 2) run a few commands, such as 'ls', 'cat', etc. (even doing nothing after 
installing may be sufficient depending on the shell)
+ 3) run 'sa' or 'lastcomm'
+ 
+ With this patch, 'sa' and 'lastcomm' should output reports of the last
+ commands used. Without the patch, they should complain about a missing
+ pacct file under '/var/account/pacct'.
+ 
+ ---
  
  Default install of acct package doesn't enable "lastcomm" to work:
  
  <PRE>
  # apt-get install acct
  Reading package lists... Done
- Building dependency tree       
+ Building dependency tree
  Reading state information... Done
  The following NEW packages will be installed:
-   acct
+   acct
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 111kB of archives.
  After this operation, 360kB of additional disk space will be used.
  Get:1 http://ca.archive.ubuntu.com/ubuntu/ maverick/main acct i386 
6.5.4-2ubuntu1 [111kB]
  0% [1 acct 0B/111kB 0%]
  Fetched 111kB in 0s (115kB/s)
  Selecting previously deselected package acct.
  (Reading database ... 125574 files and directories currently installed.)
  Unpacking acct (from .../acct_6.5.4-2ubuntu1_i386.deb) ...
  Processing triggers for doc-base ...
  Processing 1 added doc-base file(s)...
  Registering documents with scrollkeeper...
  Processing triggers for install-info ...
  Processing triggers for man-db ...
  Processing triggers for ureadahead ...
  Setting up acct (6.5.4-2ubuntu1) ...
  Turning on process accounting, file set to '/var/log/account/pacct'.
-  * Done.
+  * Done.
  
  # lastcomm
  couldn't open file '/var/account/pacct': No such file or directory
  
  # ls -l /var/account
  ls: cannot access /var/account: No such file or directory
  
  # ln -s log/account /var/account
  
  # lastcomm
  bash              F    root     pts/0      0.00 secs Fri Nov 19 00:54
  ln                     root     pts/0      0.00 secs Fri Nov 19 00:54
  bash              F    root     pts/0      0.00 secs Fri Nov 19 00:54
  ls                     root     pts/0      0.00 secs Fri Nov 19 00:54
  bash              F    root     pts/0      0.00 secs Fri Nov 19 00:54
  lastcomm               root     pts/0      0.00 secs Fri Nov 19 00:54
  bash              F    root     pts/0      0.00 secs Fri Nov 19 00:54
  lastcomm               root     pts/0      0.00 secs Fri Nov 19 00:54
  [...etc...]
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: acct 6.5.4-2ubuntu1
  ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
  Uname: Linux 2.6.35-22-generic x86_64
  Architecture: amd64
  Date: Sat Nov 27 14:07:58 2010
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  ProcEnviron:
-  LC_CTYPE=en_CA.utf8
-  LC_COLLATE=C
-  PATH=(custom, user)
-  LANG=C
-  SHELL=/bin/bash
+  LC_CTYPE=en_CA.utf8
+  LC_COLLATE=C
+  PATH=(custom, user)
+  LANG=C
+  SHELL=/bin/bash
  SourcePackage: acct

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/682211

Title:
  lastcomm cannot find /var/account/pacct

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to