w and who don't list users in FreeBSD 9.0 and 9.1
Nikos Vassiliadis
nvass at gmx.com
Tue Mar 19 17:44:54 UTC 2013
On 19/3/2013 6:03 μμ, Ruben de Groot wrote:
> On Tue, Mar 19, 2013 at 04:59:56PM +0100, Istvan Gabor typed:
>> Hello:
>>
>> I have both FreeBSD 9.0 and 9.1 on two different computers.
>> w and who commands do not list logged in users in any of them
>> (either for root or a regular user).
>>
>> The output of w is:
>>
>> root@:/root # w
>> 4:56PM up 10 mins, 0 users, load averages: 0.18, 0.26, 0.20
>> USER TTY FROM LOGIN@ IDLE WHAT
>> root@:/root #
>>
>> And the output of who:
>>
>> root@:/root # who
>> root@:/root #
>>
>> Why is this and how can I fix it?
>
> This can happen if your kernel and world are out of sync.
It can also happen if /var/run/utx.active is corrupt. Could you
try deleting it? It will be re-created after a successful login.
Nikos
More information about the freebsd-questions
mailing list