9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Problems setting up a cpu/auth/file server
@ 2007-05-09  4:35 Kim Shrier
  2007-05-09  4:54 ` Federico Benavento
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Kim Shrier @ 2007-05-09  4:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I am having a few problems getting this going.  I have a PC that I
have just installed Plan 9 on using a CD image I downloaded on May
5th.  Since I want to connect to it from my Mac using drawterm, I
assume that I need to boot the Plan 9 box as a cpu/auth/file server.

Following the instructions on
http://plan9.bell-labs.com/wiki/plan9/ 
Configuring_a_Standalone_CPU_Server/index.html
is not working too well for me.

Here are the steps I have gone through.  I have booted the system
and logged in as kim.  When i created user kim, I added myself to
the sys group.

     term% cd /rc/bin
     term% ed cpurc

The contents on cpurc don't seem to aggree 100% with the instructions,
but I think I figured out what needed to be done.

     term% con /srv/fscons
     prompt: uname bootes bootes
     prompt: fsys main
     main: create /active/cron/bootes bootes bootes d775
     main: create /active/sys/log/cron bootes bootes a664
     main: ctl-\>>> q

The instructions don't say anything about ctl-\ and q but I assume
that that is the correct thing to type.

     term% auth/keyfs
     bad nvram key
     bad authentication id
     bad authentication domain
     can't read /dev/key, please enter machine key
     Password: alongpassword
     Confirm password: alongpassword

     term% cd /lib/ndb
     term% ed auth

I add the lines:
     hostid=bootes
             uid=!sys uid=!adm uid=*

At this point, the instructions tell you to copy 9pccpuf to /n/fat
but there is no 9pccpuf.  I read the instructions on building a
kernel.  I reboot the system and log in as user sys.

     % cd /sys/src/9/pc
     % mk 'CONF=pccpuf'
     /tmp/mkarg000095: '/tmp/mkarg000095' permission denied

We can't create the tmp file because /tmp is owned by sys:sys and
the permissions are 555.  What is the point of having a tmp
directory that nobody can write to?

     % chmod 755 /tmp
     % mk 'CONF=pccpuf'

Looks like everything worked.  I reboot and log in as kim.

     term% 9fat:
     term% cp /sys/src/9/pc/9pccpuf /n/9fat/
     term% cd /n/9fat
     term% ed plan9.ini
     term% echo blahblahblah >/dev/sdC0/nvram

I make the changes in the instructions including the startup menu
so I can choose the kernel to boot. I then reboot and choose the
9pccpuf kernel.

     root is from (tcp, il, local)[local!#S/sdC0/fossil]: hit enter
     bad nvram key
     bad authentication id
     bad authentication domain
     authid: bootes
     authdom: tinker.com
     secstore key: someotherlongpassword
     password: adifferentpassword
     time...
     venti...fossil(#S/sdC0/fossil)...version...time...
     mv: can't create /rc/bin/service.auth/il566: '/rc/bin/ 
service.auth/il566' permission denied
     mv: can't create /rc/bin/service.auth/tcp567: '/rc/bin/ 
service.auth/tcp567' permission denied
     mv: can't stat /rc/bin/service/il566: '/rc/bin/service/il566'  
does not exist
     mv: can't stat /rc/bin/service/tcp567: '/rc/bin/service/tcp567'  
does not exist

     init: starting /bin/rc
     vh#

I look at the permissions for /rc/bin/service.auth.  It is also
owned by sys:sys and the permissions are 755.  I assume I am
running as bootes.

     vh# who
     bootes
     none

Since bootes is not allowed to assume the uid of sys and the
service.auth directory is owned by sys, how is cpurc supposed
to be able to copy il566 and tcp567 into it?

Continuing on...

     vh# auth/changeuser bootes
     Password: adifferentpassword
     Confirm password: adifferentpassword
     assign Inferno/POP secret? (y/n) n
     Expiration date (YYYYMMDD or never)[return = never]: hit enter
     Post id: hit enter
     User's full name: bootes on vh
     Department #: hit enter
     User's email address: hit enter
     Sponsor's email address: hit enter
     changeuser: can't open /adm/keys.who
     vh#

OK.  It looks like things aren't working too well.  Time to ask
for guidance again.

Once again, thanks for any assistance.

Kim



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

end of thread, other threads:[~2007-05-09 23:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-09  4:35 [9fans] Problems setting up a cpu/auth/file server Kim Shrier
2007-05-09  4:54 ` Federico Benavento
2007-05-09 14:33   ` Kim Shrier
2007-05-09 14:42     ` Skip Tavakkolian
2007-05-09 14:50     ` Federico Benavento
2007-05-09  9:03 ` Antonin
2007-05-09 14:34   ` Kim Shrier
2007-05-09 20:19 ` Claudio Leite
2007-05-09 23:35   ` David Leimbach

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