Who command problem

Why would when I type the w or who command on Linux would it only show me the first ten dial-up ttys (ie ttyE0 to
ttyE9)?
This makes it hard for me to know how long users have been online. What can I do to either fix it or find out how long users have been online???
LVL 4
unicorntechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

xtermCommented:
finger @that.box.com
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
unicorntechAuthor Commented:
But how do I know who to finger if they don't show up using who???
0
xtermCommented:
Don't finger by name... type it like I had it:
finger @that.box.com

That will tell you everybody logged in.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

unicorntechAuthor Commented:
But I still get the same problem it only shows the users from ttyE0 to ttyE9 and when the tty goes to double figures like ttyE11 it doesn't show up???
0
unicorntechAuthor Commented:
Adjusted points to 75
0
xtermCommented:
okay.  what about "ps -ax | grep e[0-100]"
make an alias for it of course... don't want to be typing
that every time.
0
unicorntechAuthor Commented:
Thanks for the comment but that is what I've been doing except I've been doing "ps -ax|grep pppd" and that tells me how many ppp processes are running but not who is using them. What I really need to know is why who doesn't work and what I need to do to fix it. Please help 'cause the comments so far are great!!

Regards,
Jason
0
ahoffmannCommented:
May be there are corrupted /etc/{w,u}tmp  (or whereever they
reside) files. Remove them carefully.
0
aldemCommented:
try "last -20" for last 20 logons. Users who is online now
will be marked as "still logged in", for all other you will
see login/logout/total time.

Of course, you can grep it, if you need only
logged in users. :)

0
unicorntechAuthor Commented:
I've been looking thru the utmp.h file and found an entry for the length of the tty entry output. This is set to [2] - should I perhaps change this to [3], recompile and reinstall the kernel?
0
aldemCommented:
Kernel is not responsible for handling [wu]tmp files.
It is responsibility of programs like "login", "getty".
And, many programs depends on format of utmp file.

You can change it, of course, but after this you need
to recompile all programs which use it. At least, you
need to recompile: login, getty, agetty, mgetty, who,
finger, last...

But, look at utmp.h more close: entry, responsible for
storing device (line) name [ut_line], is 12 bytes long. And info
about tty stored here.

0
Devario JohnsonSoftware EngineerCommented:
Does anyone know of a program that tells an administrator can check to see how how long users are logged into a client machine on a network?

Win 2000 pro
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.