Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: log file help

  1. #1
    Join Date
    Sep 2008
    Location
    Ohio
    Beans
    582

    log file help

    When I bring up the log file viewer I keeping getting an error at the top for /var/log/btmp saying "The file is not a regular file or is not a text file." This has never happened before when I would open up the log file viewer. Can someone help me out with this?

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: log file help

    btmp is used to record bad logins.

    what's the output of:
    Code:
    ls -alh /var/log/btmp
    are you using ssh?

  3. #3
    Join Date
    Sep 2008
    Location
    Ohio
    Beans
    582

    Re: log file help

    The output is
    Code:
    -rw-rw-r-- 1 root utmp 384 2009-04-29 15:05 /var/log/btmp
    I don't think I'm using ssh, though it seems to be installed.

  4. #4
    Join Date
    Sep 2008
    Location
    Ohio
    Beans
    582

    Re: log file help

    Anyone?

  5. #5
    Join Date
    Sep 2008
    Location
    Ohio
    Beans
    582

    Re: log file help

    Still nothing?

  6. #6
    Join Date
    May 2009
    Beans
    1

    Re: log file help

    I had the same problem myself. What I ended up doing should work for you.
    Open a terminal session and move "btmp" to btmp.bak like this
    sudo mv /var/log/btmp /var/log/btmp.bak
    now copy a "dummy" file in its place
    sudo cp -p /var/log/boot /var/log/btmp
    now open the loge file viewer and select the btmp file on the left side of the application window. wthe it hilighted either select File -> Close or Ctrl + W. this will remove btmp from the list of logs bieng monitored by the log viewer. Now go back to the console and replace the origonal btmp file with
    sudo cp -p /var/log/btmp.bak /var/log/btmp
    Cheers

  7. #7
    Join Date
    Sep 2008
    Location
    Ohio
    Beans
    582

    Re: log file help

    After I do that, when I try to add btmp back to the log file viewer I get the error "You don't have enough permissions to read the file."

  8. #8
    Join Date
    Jan 2008
    Beans
    2

    Re: log file help

    Quote Originally Posted by gFallon View Post
    I had the same problem myself. What I ended up doing should work for you.
    Open a terminal session and move "btmp" to btmp.bak like this
    sudo mv /var/log/btmp /var/log/btmp.bak
    now copy a "dummy" file in its place
    sudo cp -p /var/log/boot /var/log/btmp
    now open the loge file viewer and select the btmp file on the left side of the application window. wthe it hilighted either select File -> Close or Ctrl + W. this will remove btmp from the list of logs bieng monitored by the log viewer. Now go back to the console and replace the origonal btmp file with
    sudo cp -p /var/log/btmp.bak /var/log/btmp
    Cheers

    Thanks, it worked for me

  9. #9
    Join Date
    May 2009
    Location
    Vancouver, BC
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: log file help

    Quote Originally Posted by brandon88tube View Post
    After I do that, when I try to add btmp back to the log file viewer I get the error "You don't have enough permissions to read the file."
    I don't think you can use the log file viewer to view the btmp log file since it's not a text file. The only way I know of to view the contents of this file in plain text is to use the following terminal command:
    Code:
    $ sudo lastb
    Last edited by rudy.b; May 12th, 2009 at 06:02 AM.

  10. #10
    Join Date
    Nov 2008
    Location
    into the wild
    Beans
    35

    Re: log file help

    Quote Originally Posted by gFallon View Post
    I had the same problem myself. What I ended up doing should work for you.
    Open a terminal session and move "btmp" to btmp.bak like this
    sudo mv /var/log/btmp /var/log/btmp.bak
    now copy a "dummy" file in its place
    sudo cp -p /var/log/boot /var/log/btmp
    now open the loge file viewer and select the btmp file on the left side of the application window. wthe it hilighted either select File -> Close or Ctrl + W. this will remove btmp from the list of logs bieng monitored by the log viewer. Now go back to the console and replace the origonal btmp file with
    sudo cp -p /var/log/btmp.bak /var/log/btmp
    Cheers
    Thanks, this worked for me too!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •