9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] floppy based standalone auth server
@ 2002-12-03  2:31 Russ Cox
  2002-12-03  4:52 ` Lucio De Re
  0 siblings, 1 reply; 14+ messages in thread
From: Russ Cox @ 2002-12-03  2:31 UTC (permalink / raw)
  To: 9fans

> I create `/mnt/netkeys'.  Its meaning is not clear enough to me.

There are two key databases -- keys and netkeys.
Keys is the usual database used by Plan 9, while netkeys
is typically a secondary database tracking people who
use hardware DES-based SecureNet authenticators like the ones from
Digital Pathways (now some other name, I'm sure),
You don't need netkeys if you're not using hardware boxes.

Russ



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] floppy based standalone auth server
@ 2002-12-03  5:06 Russ Cox
  0 siblings, 0 replies; 14+ messages in thread
From: Russ Cox @ 2002-12-03  5:06 UTC (permalink / raw)
  To: 9fans

> I may be getting this wrong, but isn't it useful for connections
> from foreign hosts?  Like telnet and FTP, for example?

There's nothing magical about the name netkeys.
It's just convention that Plan 9 (password-based) keys
are stored in /mnt/keys whereas hardware-based keys
are stored in /mnt/netkeys.

When you use netkey (see passwd(1)), you are simulating
a SecureNet box but with a password, so /mnt/keys is the
relevant database.

Russ



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] floppy based standalone auth server
@ 2002-12-03  1:39 YAMANASHI Takeshi
  0 siblings, 0 replies; 14+ messages in thread
From: YAMANASHI Takeshi @ 2002-12-03  1:39 UTC (permalink / raw)
  To: 9fans

> > >> 	0	./mnt/keys/nashi
> > what's this?  the directories under /mnt/keys

Russ is right.  It was just mistakenly created during
my try and error cycle.

> 2. "netkeys" are missing.  I'm assuming they should be included.

I create `/mnt/netkeys'.  Its meaning is not clear enough to me.

I placed my file system floppy image (DOS format) on
	http://p9c.cc.titech.ac.jp/plan9/tmp/mandos.3rd.fs.fd

Modify /bin/cpurc and /lib/ndb/local on the floppy
before the use.  Also, you will need another floppy
or something to load 9pccpu kernel.
Answer `local!fd0' to `root is from' question.

Thank you for all your kind suggestions and hope
this gives a good start.
--
YAMANASHI Takeshi



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] floppy based standalone auth server
@ 2002-12-02 21:11 Russ Cox
  2002-12-03  4:26 ` Lucio De Re
  0 siblings, 1 reply; 14+ messages in thread
From: Russ Cox @ 2002-12-02 21:11 UTC (permalink / raw)
  To: 9fans

> 3. I'd like to add timesync at least and a few entries in /sys/log,
> but I suspect these are going to blow the floppy.  Any chance of
> adding fixed-length circular files to Plan 9?

why bother putting them on disk?
you could modify /sys/src/lib9p/ramfs.c
to do what you want.  then in cpurc you can do

	logfs -m /sys/log
	for(i in timesync dns cs auth ...)
		>/sys/log/$i

russ



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] floppy based standalone auth server
@ 2002-12-02 13:18 Russ Cox
  2002-12-02 13:29 ` Lucio De Re
  0 siblings, 1 reply; 14+ messages in thread
From: Russ Cox @ 2002-12-02 13:18 UTC (permalink / raw)
  To: 9fans

>> 	0	./mnt/keys/nashi

what's this?  the directories under /mnt/keys
should be provided by keyfs rather than
be in the on-disk file system.



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] floppy based standalone auth server
@ 2002-12-02  8:05 YAMANASHI Takeshi
  2002-12-02  8:33 ` Lucio De Re
  2002-12-02 14:26 ` Ronald G. Minnich
  0 siblings, 2 replies; 14+ messages in thread
From: YAMANASHI Takeshi @ 2002-12-02  8:05 UTC (permalink / raw)
  To: 9fans

Thank you, Lucio.

I use two floppies for the auth serv.
One for kernel, and the other for fs.
Both are DOS formatted floppies.
Attached at the end of this mail is
the output of `du -a' of the fs floppy.

> The floppy drive would make this slower,
> but ramfs may be the way to speed things up if you have enough
> memory.

It seems that dossrv is serving as an cache mechanism.

	1	./plan9.nvr
	79	./386/init
	124	./386/bin/rc
	29	./386/bin/cat
	46	./386/bin/echo
	61	./386/bin/ls
	51	./386/bin/ps
	36	./386/bin/date
	86	./386/bin/ip/ipconfig
	86	./386/bin/ip
	122	./386/bin/ndb/cs
	122	./386/bin/ndb
	95	./386/bin/aux/listen
	95	./386/bin/aux
	94	./386/bin/auth/keyfs
	85	./386/bin/auth/changeuser
	126	./386/bin/auth/auth.srv
	305	./386/bin/auth
	955	./386/bin
	1034	./386
	1	./adm/timezone/local
	1	./adm/timezone
	1	./adm/keys
	1	./adm/keys.who
	3	./adm
	0	./bin
	1	./rc/bin/cpurc (*)
	0	./rc/bin/service
	1	./rc/bin/service.auth/il565
	1	./rc/bin/service.auth/il566
	1	./rc/bin/service.auth/tcp567
	3	./rc/bin/service.auth
	4	./rc/bin
	1	./rc/lib/rcmain
	1	./rc/lib
	5	./rc
	1	./lib/namespace
	1	./lib/ndb/local
	1	./lib/ndb/auth
	2	./lib/ndb
	3	./lib
	0	./mnt/keys/nashi
	0	./mnt/keys
	0	./mnt
	1046	.

--
YAMANASHI Takeshi



^ permalink raw reply	[flat|nested] 14+ messages in thread
* [9fans] floppy based standalone auth server
@ 2002-12-02  7:37 YAMANASHI Takeshi
  2002-12-02  7:49 ` Lucio De Re
  2002-12-02 14:25 ` Ronald G. Minnich
  0 siblings, 2 replies; 14+ messages in thread
From: YAMANASHI Takeshi @ 2002-12-02  7:37 UTC (permalink / raw)
  To: 9fans

I am running a 3rd ed. auth server obtaining
its root fs from a floppy disk.

In the attempt to upgrade my plan 9 network
to 4th ed. system, this is the last machine
remaining that runs 3rd ed. system and I am
planning to upgrade this to 4th ed. based
floppy served stand alone auth server.

So, could you give me outlines about the
4th ed. auth server, like boot sequence,
changes impacted by factotum, or something.

Thank you.
--
YAMANASHI Takeshi



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

end of thread, other threads:[~2002-12-03  5:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03  2:31 [9fans] floppy based standalone auth server Russ Cox
2002-12-03  4:52 ` Lucio De Re
  -- strict thread matches above, loose matches on Subject: below --
2002-12-03  5:06 Russ Cox
2002-12-03  1:39 YAMANASHI Takeshi
2002-12-02 21:11 Russ Cox
2002-12-03  4:26 ` Lucio De Re
2002-12-02 13:18 Russ Cox
2002-12-02 13:29 ` Lucio De Re
2002-12-02  8:05 YAMANASHI Takeshi
2002-12-02  8:33 ` Lucio De Re
2002-12-02 14:26 ` Ronald G. Minnich
2002-12-02  7:37 YAMANASHI Takeshi
2002-12-02  7:49 ` Lucio De Re
2002-12-02 14:25 ` Ronald G. Minnich

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).