Coda File System

Re: Clog problem 4.6.5

From: LEE, Yui-wah <clement_at_cse.cuhk.edu.hk>
Date: Wed, 16 Sep 1998 11:32:04 +0800 (CST)
"Khairul Azmi" <k_azmi_at_hotmail.com> wrote:
> 
> Just to add more info
> 
> >
> >At SCM machine
> >/vice/db/user.coda
> >admin::500::Administrator::
> >azmi::502::Tuan::
> >
> >/vice/db/group.coda
> >System:Administrators   -204    admin
> >System:Coda             -205    azmi
> >
> >Note: I just give the GID. Should it be the same as UNIX GID?
> >
> >-pwd2pdb -u user.coda -g group.coda > vice.pdb
> >2 user entries found
> >
> >-pcfgen /vice/db/vice.pdb
> 
> I forgot to add several steps I took
> 
> edit /vice/db/passwd.coda
> 500     changeme        admin user
> 502     abcdefgh        azmi tuan
> 
> initpw -k "drseuss" </vice/db/passwd.coda> /vice/db/auth2.pw
> 
> Should the username for the coda be the same with server /etc/passwd???

There should be an entry with UID 500 and another one with UID 502.
I don't that they really needed to be named as "admin" and "azmi"
respectively (but of course, doing so seems more reasonable).  And when
you clog, you should have su'ed (changer user) to the right UID first.

For example, on my client, when I need to do some admin. work:

[clement_at_aria clement]$ su admin
Password: 
[admin_at_aria clement]$ clog admin
Password: 
[admin_at_aria clement]$ ctokens

Tokens held by the Cache Manager:

UID=500 : [Expires Sep 17 12:17]

***

Also, my /etc/passwd contains the following entries:

clement:x:6822:500:LEE, Yui-wah:/home/clement:/bin/bash
admin:zzz:500:100:Coda Sys. Admin:/home/admin:/bin/bash

My user.coda, group.coda and passwd.coda:

[clement_at_xylophone db]$ cat user.coda
admin::500::Administrator::
clement::6822::LEE, Yui-wah (Clement)::

[clement_at_xylophone db]$ cat group.coda
System:Administrators   -204    admin

[clement_at_xylophone db]$ cat passwd.coda 
500     changeme        admin user

-- Clement



======================================================================
Yui-wah LEE (Clement)                              Tel: (852)-26098412
Department of Computer Science and Engineering,    Fax: (852)-26035024 
The Chinese University of Hong Kong     Email: clement_at_cse.cuhk.edu.hk
======================================================================
Received on 1998-09-15 23:36:03