Solved

Command "who" doesn't work

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
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.:

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now