Operating System - HP-UX
1762747 Members
2487 Online
108909 Solutions
New Discussion юеВ

User session is still present although no process are shown in process status

 
SOLVED
Go to solution
WK Wong
Occasional Contributor

User session is still present although no process are shown in process status

No process are shown in ps -ef command related to a user. But if issue the who/finger command the user is still present. Is this a normal behavior? If so, how can I kill the user session? Thanks in advance.
5 REPLIES 5
AwadheshPandey
Honored Contributor

Re: User session is still present although no process are shown in process status

u can kill the user session by
who
fuser -k tty of user
man fuser
for ex: fuser -k /dev/pts/0

Regards,
It's kind of fun to do the impossible
Dennis Handly
Acclaimed Contributor
Solution

Re: User session is still present although no process are shown in process status

There could be garbage entries in /var/adm/wtmp. See last(1).
See this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1118377
WK Wong
Occasional Contributor

Re: User session is still present although no process are shown in process status

Awadhesh,

I taken a look in man fuser and saw -k option is to indicate a file, but who indicates the tty (e.g. pts/ta) so if I use fuser -k pts/ta then it is result in the error
"pts/ta:stat No such file or directory"
"fuser:could not find or access file pts/ta"
Is it something that I am doing wrong? Thanks in advance.

Dennis Handly
Acclaimed Contributor

Re: User session is still present although no process are shown in process status

>but who indicates the tty (e.g. pts/ta) so if I use fuser -k pts/ta then it is result in the error

You need /dev/pts/ta like Awadhesh had.
AwadheshPandey
Honored Contributor

Re: User session is still present although no process are shown in process status

u should give fuser -k /dev/pts/ta
It's kind of fun to do the impossible