Operating System - HP-UX
1753981 Members
6580 Online
108811 Solutions
New Discussion юеВ

Re: delete old entries in who -u

 
sachit patil
Regular Advisor

delete old entries in who -u

how can we delete old entries from who -u o/p
which file contains the information of who -u
7 REPLIES 7
Anshumali
Esteemed Contributor

Re: delete old entries in who -u

who -u should be current.
From man as well:
"-u Lists only those users who are currently logged
in. name is the user's login name. line is the
name of the line as found in the directory /dev.
The time field indicates when the user logged in."

Why you need to remove? What old entries you are getting? Are they not logged in? Kill their session if you want to close them.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Suraj K Sankari
Honored Contributor

Re: delete old entries in who -u

Hi,

After killing those process if they dont vanish then you need to reboot the server.

Suraj
sachit patil
Regular Advisor

Re: delete old entries in who -u

i dont have reboot permission.
Patrick Wallek
Honored Contributor

Re: delete old entries in who -u

>>i dont have reboot permission.

Sounds like you may need to talk to someone that does then.
Dennis Handly
Acclaimed Contributor

Re: delete old entries in who -u

>I don't have reboot permission.

I assume you ave root?
Again, what HP-UX version are you running?
What is more important, having who -u working right or spending time for reboot?
Or spending lots of time looking at all of those threads to pick what works?
Or possibly writing a program to fix the utmp files?
Dennis Handly
Acclaimed Contributor

Re: delete old entries in who -u

>ME: Or spending lots of time looking at all of those threads to pick what works? Or possibly writing a program to fix the utmp files?

See:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1322368