[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deluser without rebooting first



On Tue, 2004-01-27 at 02:32, Nano Nano wrote:
> On Tue, Jan 27, 2004 at 12:19:27AM -0800, Nano Nano wrote:
> > who -H says the user has pts/[0-3] open, even though I've slayed him.
> > How can I close those?
> 
> Apparently this is gnome-terminal that's causing it.
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=183035
> Been open for a while.
> 
> Anyway, is there a way to forcibly close them and "clean up"?

If the processes are still listed, then yes. What I would do is:

ps -Af |grep ^<first 5 letters of your username>

And then a 'kill <PID>' for any PID's listed. If that doesn't kill them
off, resort to a 'kill -9 <PID>'. That should take care of any potential
problems. There's probably a better way to do this, but as I said, this
is how _I_ would do it. :)

(Btw, the reason for only using the first 5 letters of your username is
that ps -Af only shows 7 characters of the username for me. So I do the
first 5 just in case it decides to drop to only displaying 6 or so for
some reason.)

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: