Solved

Command "who" doesn't work

Posted on 2006-07-21
3
230 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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

803 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