9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] A small question..
@ 2001-10-14 19:24 Ish Rattan
  2001-10-15  3:14 ` rob pike
  0 siblings, 1 reply; 13+ messages in thread
From: Ish Rattan @ 2001-10-14 19:24 UTC (permalink / raw)
  To: 9fans


How does one get rid of listen process started with
	aux/listen -d bin/rc/services

ps shows it running as

none  90  ... Sleep listen

kill listen | rc does not make it go away, I have been rebooting
the machine (but there has to be better way!!).

Also, I had LaserWriter on a Sparc box used for priting from Plan 9
box, it is gone now. I have a hpdeskjet-960c under Linux under BSD
type spooler (lpd). I have to type the command
	lp -s laser file-to-print

to get the file printed. The /sys/lib/lp/devices entry for the printer
laser is given below (almos the same as used under Sparc box).

Any ideas?

-ishwar

---
# 600dpi postscript printer named vogon via BSD LPD printer queue on alice
#vogon printer-room	alice	vogon - post+600dpi		generic		lpdspool	lpd		-			-		FIFO
laser	office	141.209.131.81	laser	-	post+600dpi+nohead	generic	lpdspool	lpd	-	-	FIFO
---



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-14 21:24 Russ Cox
  2001-10-15  3:24 ` Ish Rattan
  0 siblings, 1 reply; 13+ messages in thread
From: Russ Cox @ 2001-10-14 21:24 UTC (permalink / raw)
  To: 9fans

Kill listen | rc.

kill limits itself to processes
owned by the user invoking it.

> Also, I had LaserWriter on a Sparc box used for priting from Plan 9
> box, it is gone now. I have a hpdeskjet-960c under Linux under BSD
> type spooler (lpd). I have to type the command
> 	lp -s laser file-to-print
> 
> to get the file printed. The /sys/lib/lp/devices entry for the printer
> laser is given below (almos the same as used under Sparc box).
> 
> Any ideas?

What's the problem here?



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-15  3:16 rsc
  2001-10-17  2:04 ` Ish Rattan
  0 siblings, 1 reply; 13+ messages in thread
From: rsc @ 2001-10-15  3:16 UTC (permalink / raw)
  To: 9fans

> aux/listen seems to start the 'listen' process with owner 'none'??

listen(8)

> sorry for missing word here, I have to type the above command "twice"
> before it gets spooled on Linux side.

cool.  there are many things you could try.
does a tcp connection get established both times?
what do the linux logs look like?
what do the plan 9 logs look like?
what happens when you do 
	lp -D -d laser file-to-print
?



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-17  3:34 anothy
  0 siblings, 0 replies; 13+ messages in thread
From: anothy @ 2001-10-17  3:34 UTC (permalink / raw)
  To: 9fans

// > does a tcp connection get established both times?
// 
// can't tell

try 'netstat' or 'netstat -n' and look for your Linux box's
name or IP address (respectivly). even if you don't get
the timing race just right to see the Open connection, i
think the address'll stick around in the Closed one, too.
ア



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-17  5:34 Russ Cox
  2001-10-17 14:54 ` Ish Rattan
  0 siblings, 1 reply; 13+ messages in thread
From: Russ Cox @ 2001-10-17  5:34 UTC (permalink / raw)
  To: 9fans

> aux/listen -t bin/rc/services did the trick, thanks.

Why do you want to run as someone other than none?

> [lp problems]

Suppose you do

	cat /adm/users | lp -d laser
	ls -l / | lp -d laser

Which gets printed?



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-17 19:10 forsyth
  2001-10-17 19:45 ` Ish Rattan
  0 siblings, 1 reply; 13+ messages in thread
From: forsyth @ 2001-10-17 19:10 UTC (permalink / raw)
  To: 9fans

>>Also, in file: /sys/log/ftp
>>193.252.168.243.1811 user anonymous 193.252.168.243

>>what could it be?

>>Is it that the machine is visible on internet so attempts are being made
>>to get into it??

yes.  do a reverse lookup on that address.
be sure you've got anonymous ftp set up sensibly if you enable it at all.
it takes surprisingly little time for someone to stumble across it.
my cable modem gateway was detected shortly after i switched it on
with anonymous ftp from someone in belgium (i hadn't intended to
enable anon. ftp but had it on for convenience when setting it up).



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-17 19:12 forsyth
  0 siblings, 0 replies; 13+ messages in thread
From: forsyth @ 2001-10-17 19:12 UTC (permalink / raw)
  To: 9fans

>>what is dnstcp? Under Linux I can't resolv the address 141.209.9.74??

DNS can run over TCP (and i think there's a rule for
switching to it when the UDP result was too
long and had to be truncated).

it's invoked by /rc/bin/service/tcp53, typically for zone transfers,
but it's also useful for long series of requests to the same server.



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [9fans] A small question..
@ 2001-10-18 14:14 forsyth
  0 siblings, 0 replies; 13+ messages in thread
From: forsyth @ 2001-10-18 14:14 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

>>I have not set up anonymous ftp etc., so, next question is how do I know
>>that these attempts have succeded or failed?

if it's not enabled (there isn't a -a option in /rc/bin/service/tcp21),
the attempt is logged in /sys/log/ftp but rejected.


[-- Attachment #2: Type: message/rfc822, Size: 2257 bytes --]

To: <9fans@cse.psu.edu>
Subject: Re: [9fans] A small question..
Date: Wed, 17 Oct 2001 15:45:50 -0400 (EDT)
Message-ID: <Pine.LNX.4.30.0110171541480.1622-100000@pali.cps.cmich.edu>

On Wed, 17 Oct 2001 forsyth@caldo.demon.co.uk wrote:

> >>Also, in file: /sys/log/ftp
> >>193.252.168.243.1811 user anonymous 193.252.168.243
>
> >>what could it be?
>
> >>Is it that the machine is visible on internet so attempts are being made
> >>to get into it??
>
> yes.  do a reverse lookup on that address.

some addresses can be resolved in reverse lookup but some do not exist!
I have not set up anonymous ftp etc., so, next question is how do I know
that these attempts have succeded or failed?

I also similar entries in file: /sys/log/ssh and
/sys/log/auth


> be sure you've got anonymous ftp set up sensibly if you enable it at all.
How do I that? I have not touched the defaults except the e-mail
setup.

-ishwar


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-10-18 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-14 19:24 [9fans] A small question Ish Rattan
2001-10-15  3:14 ` rob pike
2001-10-14 21:24 Russ Cox
2001-10-15  3:24 ` Ish Rattan
2001-10-15  3:16 rsc
2001-10-17  2:04 ` Ish Rattan
2001-10-17  3:34 anothy
2001-10-17  5:34 Russ Cox
2001-10-17 14:54 ` Ish Rattan
2001-10-17 19:10 forsyth
2001-10-17 19:45 ` Ish Rattan
2001-10-17 19:12 forsyth
2001-10-18 14:14 forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).