From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Peter Hull Date: Mon, 24 Jul 2017 17:40:49 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: [9fans] Killing another user's process Topicbox-Message-UUID: bfd6de58-ead9-11e9-9d60-3106f5b1d025 Is it possible to kill another user's process in plan9? Specifically I've been messing about with tftpd, which sets itself up as user 'none' - if I want to stop the tftp server, how do I do that? Thanks, Pete From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Skip Tavakkolian Date: Mon, 24 Jul 2017 18:23:52 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="94eb2c05bd36c338910555145102" Subject: Re: [9fans] Killing another user's process Topicbox-Message-UUID: c04d0434-ead9-11e9-9d60-3106f5b1d025 --94eb2c05bd36c338910555145102 Content-Type: text/plain; charset="UTF-8" If you're the host owner, you can: Kill tftpd | rc (See rc scripts kill and Kill) On Mon, Jul 24, 2017, 9:41 AM Peter Hull wrote: > Is it possible to kill another user's process in plan9? > Specifically I've been messing about with tftpd, which sets itself up > as user 'none' - if I want to stop the tftp server, how do I do that? > Thanks, > Pete > > --94eb2c05bd36c338910555145102 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

If you're the host owner, you can:

Kill tftpd | rc

(See rc scripts kill and Kill)


On Mon, Jul 24, 2017, 9:41 = AM Peter Hull <peterhull90@gmai= l.com> wrote:
Is it possible= to kill another user's process in plan9?
Specifically I've been messing about with tftpd, which sets itself up as user 'none' - if I want to stop the tftp server, how do I do tha= t?
Thanks,
Pete

--94eb2c05bd36c338910555145102-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Peter Hull Date: Tue, 25 Jul 2017 08:34:05 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] Killing another user's process Topicbox-Message-UUID: c0658e32-ead9-11e9-9d60-3106f5b1d025 Thanks, Skip. I thought that ought to work, however 'kill tftpd' doesn't give any output. (I can kill other processes) I think maybe I have misunderstood the host owner part. If I do a plain install (of 9front, actually) from the CD and log in as glenda, am I not the host owner? Thanks, Pete On Mon, 24 Jul 2017 at 20:02 Skip Tavakkolian wrote: > > If you're the host owner, you can: > > Kill tftpd | rc > > (See rc scripts kill and Kill) > > > On Mon, Jul 24, 2017, 9:41 AM Peter Hull wrote: >> >> Is it possible to kill another user's process in plan9? >> Specifically I've been messing about with tftpd, which sets itself up >> as user 'none' - if I want to stop the tftp server, how do I do that? >> Thanks, >> Pete >> From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Charles Forsyth Date: Tue, 25 Jul 2017 10:14:37 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="001a1140216ec128cb055520c23a" Subject: Re: [9fans] Killing another user's process Topicbox-Message-UUID: c06c6ff4-ead9-11e9-9d60-3106f5b1d025 --001a1140216ec128cb055520c23a Content-Type: text/plain; charset="UTF-8" lower case kill restricts the list to processes of the invoking user initial cap Kill doesn't do that. for lower case kill, you can @{rfork n; echo -n none >/tmp/none && bind /tmp/none /dev/user && kill tftpd} you wouldn't normally of course but aspects of that command might be instructive On 25 July 2017 at 08:34, Peter Hull wrote: > Thanks, Skip. > I thought that ought to work, however 'kill tftpd' doesn't give any > output. (I can kill other processes) > I think maybe I have misunderstood the host owner part. If I do a > plain install (of 9front, actually) from the CD and log in as glenda, > am I not the host owner? > Thanks, > Pete > > > On Mon, 24 Jul 2017 at 20:02 Skip Tavakkolian > wrote: > > > > If you're the host owner, you can: > > > > Kill tftpd | rc > > > > (See rc scripts kill and Kill) > > > > > > On Mon, Jul 24, 2017, 9:41 AM Peter Hull wrote: > >> > >> Is it possible to kill another user's process in plan9? > >> Specifically I've been messing about with tftpd, which sets itself up > >> as user 'none' - if I want to stop the tftp server, how do I do that? > >> Thanks, > >> Pete > >> > > --001a1140216ec128cb055520c23a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
lower case kill restricts the list to processes of the inv= oking user
initial cap Kill doesn't do that.
for lower ca= se kill, you can @{rfork n; echo -n none >/tmp/none && bind /tmp= /none /dev/user && kill tftpd}
you wouldn't normally = of course but aspects of that command might be instructive

On 25 July 2017 at 08:= 34, Peter Hull <peterhull90@gmail.com> wrote:
Thanks, Skip.
I thought that ought to work, however 'kill tftpd' doesn't give= any
output. (I can kill other processes)
I think maybe I have misunderstood the host owner part. If I do a
plain install (of 9front, actually) from the CD and log in as glenda,
am I not the host owner?
Thanks,
Pete


On Mon, 24 Jul 2017 at 20:02 Skip Tavakkolian
<skip.tavakkolian@gmail.co= m> wrote:
>
> If you're the host owner, you can:
>
> Kill tftpd | rc
>
> (See rc scripts kill and Kill)
>
>
> On Mon, Jul 24, 2017, 9:41 AM Peter Hull <peterhull90@gmail.com> wrote:
>>
>> Is it possible to kill another user's process in plan9?
>> Specifically I've been messing about with tftpd, which sets it= self up
>> as user 'none' - if I want to stop the tftp server, how do= I do that?
>> Thanks,
>> Pete
>>


--001a1140216ec128cb055520c23a-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Peter Hull Date: Tue, 25 Jul 2017 10:31:23 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] Killing another user's process Topicbox-Message-UUID: c0738bf4-ead9-11e9-9d60-3106f5b1d025 On Tue, 25 Jul 2017 at 10:14 Charles Forsyth wrote: > > lower case kill restricts the list to processes of the invoking user > initial cap Kill doesn't do that. Apologies both - didn't read Skip's answer properly. I saw kill where I should have seen Kill. > for lower case kill, you can @{rfork n; echo -n none >/tmp/none && bind /tmp/none /dev/user && kill tftpd} > you wouldn't normally of course but aspects of that command might be instructive Definitely.