Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 10:15:39 -0800
From:      "David Fuchs" <beastie@beastie.net>
To:        "David Fuchs" <beastie@beastie.net>, "Leandro Asnaghi-Nicastro" <leandro@capnasty.org>, <youlgok@attglobal.net>
Cc:        <freebsd-newbies@freebsd.org>
Subject:   Re: [Q] account admin
Message-ID:  <003601bf6372$5badc680$0201a8c0@uniserve.com>
References:  <200001201716.MAA09052@hme0.mailrouter02.sprint.ca> <002301bf6371$25174700$0201a8c0@uniserve.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Some clarification on my last note:

    Modifying inetd.conf and restarting only stops new telnet sessions from
being started, it won't kill any current sessions.  To do that you simply do
the "ps -aux" command and look for any processes called "telnetd".  If you
see any, it means someone is logged in using telnet. You can either kill
these processes individually "kill -5 <PID for telnetd>", or you can kill
all of them with "killall telnetd".  If you're curious about that 5 in the
command "kill -5 <PID>", it's simply a number that designates the priority
of the kill command (ie, how bad do you want that process DEAD?? Would you
be willing to let it finish writing it's files? Or do you want it GONE right
now??).  Here are the most common numbers you would use:

     1       HUP (hang up)
     2       INT (interrupt)
     3       QUIT (quit)
     6       ABRT (abort)
     9       KILL (non-catchable, non-ignorable kill)
     14      ALRM (alarm clock)
     15      TERM (software termination signal)

So the higher the number, the faster the program will be shut down at a
higher risk to damaging files that the program may be writing to.  So be
careful!  I usually use kill -5 because it lets the program finish what it's
doing before it quits.  If you use anything lower sometimes the program will
just ignore you.

-David Fuchs

----- Original Message -----
From: David Fuchs <beastie@beastie.net>
To: Leandro Asnaghi-Nicastro <leandro@capnasty.org>; <youlgok@attglobal.net>
Cc: <freebsd-newbies@freebsd.org>
Sent: Thursday, January 20, 2000 10:06 AM
Subject: Re: [Q] account admin


> Leandro is right, use /etc/inetd.conf and put a # mark in front of your
> telnet service.  Once you've done that, run the command "ps -aux" to
display
> all running processes and find the process called "inetd" from the list.
On
> the same row as that process you'll see it's PID (Process ID), all you
need
> to do is restart that process so that it takes the new inetd.conf
> configuration into effect.  To restart simply type "kill -HUP <PID for
> inetd>".
>
> -David Fuchs
>
> ----- Original Message -----
> From: Leandro Asnaghi-Nicastro <leandro@capnasty.org>
> To: <youlgok@attglobal.net>
> Cc: <freebsd-newbies@freebsd.org>
> Sent: Thursday, January 20, 2000 9:16 AM
> Subject: Re: [Q] account admin
>
>
> > On This Day, in the Year of Our Lord 20 Jan 00, at 10:45, thus spake
> Youlgok :
> >
> > >     1.  Could you please explain me how to delete an user account?
> > >      I can add and create new user account from /stand/sysintall,
> > >     but I don't know how to delete alredy created a whole user
> > >     account.
> >
> > I'm new to FreeBSD, and I can answer this, thanks to David Fuchs:
> > >     to delete a user:    rmuser <username>
> >
> > >     2.  Is this possible?  While outgoing telnet to a remote host
> > >     is still open,  can I close all incoming telnet from a remote
> > >     host?
> >
> > Now, I'm new to FreeBSD, but I've used Linux.. if my guessing is
> > right, you can probably close all services into your box by editing
> > this file: /etc/inetd.conf
> >
> > Hope that helps.
> > Check out the FreeBSD page and download the newbiew
> > handbook.  Damn good resource to get started with simple
> > administration stuff.
> >
> > leandro
> > ---
> > Leandro Asnaghi-Nicastro (LA672)
> > Capital of Nasty Electronic Magazine - ISSN 1482-0471
> > Editor in Chief - http://www.capnasty.org
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-newbies" in the body of the message
> >
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-newbies" in the body of the message
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003601bf6372$5badc680$0201a8c0>