Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
The who command

The who command

2006-06-29       - By Allen, Jack

 Back
Reply:     1     2     3     4     5     6     7  

See below.

-- --Original Message-- --
From: redhat-install-list-bounces@(protected)
[mailto:redhat-install-list-bounces@(protected)] On Behalf Of Mark
McCulligh
Sent: Thursday, June 29, 2006 3:10 PM
To: Getting started with Red Hat Linux
Subject: Re: The who command

Rick Stevens wrote:

>On Thu, 2006-06-29 at 13:55 -0400, Mark McCulligh wrote:
>  
>
>>Rick Stevens wrote:
>>
>>    
>>
>>>On Thu, 2006-06-29 at 11:55 -0400, Mark McCulligh wrote:
>>>
>>>
>>>      
>>>
>>>>Hi Group,
>>>>
>>>>When I log into my system and run the who command I get no users. If
I
>>>>look at my uptime is says 0 users. Plus if I view the lastlog file
it
>>>>looks like it is corrupt.  How I am fix this?
>>>>  
>>>>
>>>>        
>>>>
>>>"who" is based on what's in /var/log/utmp or /var/log/wtmp.  If one
of
>>>those files is not present, who can't report on users.  However,
>>>/var/log/wtmp is MANDATORY on Linux and is created by init if it does
>>>not exist.
>>>
>>>
>>>      
>>>
>>I have tried using the root user. The wtmp file does exist but is
>>blank.  Any ideas?
>>    
>>
>
>When you say "blank", what do you mean?  Remember that it's a binary
>file, so "cat" or "vi" are liable to spit out garbage or nothing.
>
>Can you post an "ls -l" of it?  It should look something like this:
>
>[root@(protected) ~]# ls -l /var/log/wtmp
>-rw-rw-r--  1 root utmp 364416 Jun 27 15:42 /var/log/wtmp
>  
>
This is what I get:
[root@(protected) log]# lis -l /var/log/wtmp
-rw-rw-r--  1 root utmp 0 Jun  1 04:02 /var/log/wtmp

There is also a wtmp.1 file that also size 0.

Mark.

============
How much free space is there on the file system that has the utmp and
wtmp files? Some system use to keep the utmp and wtmp file in /etc and
later they were changed to symbolic links to other locations such as
/var/log. So some commands may look in the /etc directory and some
commands may look in /var/log. If the symbolic link has been deleted
then the data may be in /etc and the who command is looking in /var/log
for the files.


Jack Allen


__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe