On 2006-02-21 17:36:51 +0100, Otto Moerbeek wrote:
> On Tue, 21 Feb 2006, Martin Schrvder wrote:
> > is there something like lastlog(8) for openbsd? Or has someone
> > ported the shadow-utils?
> 
> What is lastlog(8)? What does it do?

http://www.planetpenguin.de/manpage-8-lastlog.8.html

<quote>
LASTLOG(8)                                             LASTLOG(8)

NAME
       lastlog - examine lastlog file

SYNOPSIS
       lastlog [<-u|--user> login-name]
               [<-t|--time> days] [<-h|--help>]

DESCRIPTION
       lastlog  formats  and  prints the contents of the last login log 
/var/log/lastlog file .
       The login-name, port, and last login time will be printed. The default 
(no flags) causes
       lastlog entries to be printed, sorted by the numerical UID.

       -u, --user login-name will cause the lastlog record for
              login-name only to be printed

       -t, --time days will cause only the lastlogins more recent
              han fIdays to be printed

       -h, --help print a one-line help message and exit.


       The -t flag overrides the use of -u.

       If  the  user  has  never  logged in the message "**Never logged in**" 
will be displayed
       instead of the port and time.

FILES
       /var/log/lastlog - lastlog logging file

CAVEATS
       Large gaps in uid numbers will cause the lastlog program to run longer 
with no output to
       the  screen  (i.e.  if mmdf=800 and last uid=170, program will appear to 
hang as it pro-
       cesses uid 171-799).

AUTHORS
       Julianne Frances Haugh ([EMAIL PROTECTED])  Phillip Street
</quote>

> lastlog
Username         Port     From             Latest
root             tty1                      Sam Mdr 12 21:34:58 +0100 2005
bin                                        **Never logged in**
daemon                                     **Never logged in**
lp                                         **Never logged in**
mail                                       **Never logged in**
news                                       **Never logged in**
uucp                                       **Never logged in**
games                                      **Never logged in**
man                                        **Never logged in**
at                                         **Never logged in**
postgres                                   **Never logged in**
mdom                                       **Never logged in**
wwwrun                                     **Never logged in**
squid                                      **Never logged in**
fax                                        **Never logged in**
gnats                                      **Never logged in**
adabas                                     **Never logged in**
amanda                                     **Never logged in**
irc                                        **Never logged in**
ftp                                        **Never logged in**
firewall                                   **Never logged in**
named                                      **Never logged in**
fnet                                       **Never logged in**
gdm                                        **Never logged in**
postfix                                    **Never logged in**
oracle                                     **Never logged in**
mysql                                      **Never logged in**
dpbox                                      **Never logged in**
ingres                                     **Never logged in**
zope                                       **Never logged in**
vscan                                      **Never logged in**
wnn                                        **Never logged in**
pop                                        **Never logged in**
perforce                                   **Never logged in**
sapdb                                      **Never logged in**
db4web                                     **Never logged in**
sshd                                       **Never logged in**
cyrus                                      **Never logged in**
ms               :0       console          Die Feb 21 15:25:16 +0100 2006

I.e. is there any program that other than login that shows
information from lastlog(5)?

> What are shadow-utils? What do they do?

<quote>
Description :
The shadow package includes the necessary programs for login on a
console, converting plain password files to the shadow password
format and programs for managing user and group accounts.The pwck
command checks the integrity of password and shadow files. The
lastlog command prints out the last login times for all users.
The useradd, userdel and usermod commands are used for managing
user accounts.  The groupadd, groupdel and groupmod commands are
used for managing group accounts.
</quote>

See also http://freshmeat.net/projects/shadow/

I realise that openbsd doesn't have /etc/shadow, so a port
probably doesn't make sense anyway.

Best
    Martin
-- 
                    http://www.tm.oneiros.de

Reply via email to