[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Command "who" doesn't work

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
DEIENO
Asked:
DEIENO
1 Solution
 
pjedmondCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now