Solved

Command "who" doesn't work

Posted on 2006-07-21
3
237 Views
Last Modified: 2013-12-16
On my  CentOS 4.3 Box, command "who" doesn't work.
even if I type "w" I get only this:

 13:12:43 up 70 days,  3:37,  0 users,  load average: 1.86, 3.34, 4.79
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT


no user, no ip... how can I fix this?

Thanks
0
Comment
Question by:DEIENO
3 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 125 total points
ID: 17156100
I'm going to assume that this depends on the permissions.

who (and hence w) gets its information from /var/run/utmp or /var/run/wtmp

If you don't have permissions to access the file then you get what you've got. My /var/run/utp permissions are:

-rw-rw-r--    1 root     utmp         8832 Jul 21 19:05 /var/run/utmp

(   (()
(`-' _\
 ''  ''

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install Ubuntu 16 in DELL venue 8 pro 20 299
Help on running oracle SQL script in linux 3 61
ftp to port 21 4 54
Impact of disabling SMB v1 on Mac and Linux clients 4 548
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question