  | | | The who command | The who command 2006-06-29 - By Mark McCulligh
Back Rick Stevens wrote:
>On Thu, 2006-06-29 at 11:55 -0400, Mark McCulligh wrote: > > >>Hi Group, >> >>When I log into my system and run the who command I get no users. If I >>look at my uptime is says 0 users. Plus if I view the lastlog file it >>looks like it is corrupt. How I am fix this? >> >> > >"who" is based on what's in /var/log/utmp or /var/log/wtmp. If one of >those files is not present, who can't report on users. However, >/var/log/wtmp is MANDATORY on Linux and is created by init if it does >not exist. > > I have tried using the root user. The wtmp file does exist but is blank. Any ideas?
>Now, have you tried "who" as the root user? You should see AT LEAST >your login. If you see nothing if you run "who" as a normal user, >then /var/log/wtmp is not set world-readable. If you wish to allow >normal users to run "who", then do this as the root user: > > # chmod ugo+r /var/log/wtmp > >and it should work. > >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- >- Rick Stevens, Senior Systems Engineer rstevens@(protected) - >- VitalStream, Inc. http://www.vitalstream.com - >- - >- Life: That which happens while you search for the remote control. - >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > >__ ____ ____ ____ ____ ____ ____ ____ ____ ____ >Redhat-install-list mailing list >Redhat-install-list@(protected) >https://www.redhat.com/mailman/listinfo/redhat-install-list >To Unsubscribe Go To ABOVE URL or send a message to: >redhat-install-list-request@(protected) >Subject: unsubscribe > >============================================= >This email scanned by CanIt-PRO Spam/Virus > > > > >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |