Results 1 to 3 of 3

Thread: can't open /var/log/lastlog

  1. #1

    Default can't open /var/log/lastlog

    When I run the command

    gedit /var/log/lastlog

    I get:

    gedit has not been able to detect the character encoding.
    Please check that you are not trying to open a binary file.
    Select a character encoding from the menu and try again.

    Anyone know how to open this file?

    Thanks

    Opensuse 11.4 Gnome

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: can't open /var/log/lastlog

    It is a binary file. You are not supposed to edit it.

    Check "/usr/include/lastlog.h" and "/usr/include/bits/utmp.h" for the format of entries.

    finger username

    will provide the information for that particular user.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default AW: Re: can't open /var/log/lastlog

    Or simply type the command
    Code:
    lastlog
    which is made to read the /var/log/lastlog entries.

Posting Permissions

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