*BSD News Article 14524


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!posgate!pos.apana.org.au!pos!sleeper!raz
From: raz@sleeper.apana.org.au (Roland Turner)
Newsgroups: comp.os.386bsd.questions
Subject: Re: NFS mount to SOSS, anyone?
Keywords: nfs, 386bsd, SOSS
Message-ID: <C5IxG5.5xy@sleeper.apana.org.au>
Date: Thu, 15 Apr 1993 12:02:26 GMT
References: <1993Apr02.113931.3181@train.ufh.ac.za>
Organization: Desolation Road Railfan BBS
Lines: 34

inus@aloe.ufh.ac.za (Inus Scheepers) writes:

>Has anyone succeeded in mounting Dos filesystems from 386bsd via
>the SOSS 3.1 nfs server? I get the following message from mount:

>"BAD MNT RPC: RPC Authentication error; why = Invalid client credential",
>but showmount -e sees the drives, available to everybody

As I was hell bent on making this work (amongst other things, to enable use
of my CD-ROM drive (SoundBlaster+Panasonic :-() - discovering that I could
access DOS character devices through SOSS was rather amusing!) I traced it 
through. Note that I am using SOSS 3.2.

The problem is that the maximum number of groups that can be listed in a 
client credential is set to some arbitrary value. I don't recall the numbers
but I think that the SOSS source claims that the limit is 10, then promptly
does a "#define NGRPS 8" whilst the same header in 386bsd (NB This header is
somewhere is rpc/ in both cases) sets it to 16. When you mount things in 
/etc/rc, you are root and a member of one group only. However, when you
login or su as root, you are a member of 10-11 groups. 386bsd sends the lot 
and SOSS barfs - apparently  oversized credentials are considred unsafe and thus 
rejected out of hand. The fix I followed was to increase the value of this
constant in SOSS to match the value in 386bsd. It now works WELL! (Writing 
is slow though...)

To whomever said it worked first time: You have either munged root's 
group memberships, not done it as a root su'd or login'd or you are using
a different version of SOSS.

-- 
Bye for now.
        - Raz.		(Roland Turner)

raz@sleeper.apana.org.au  VK2ZRT  Raz@3:712/413.1  (OH) 61 2 319 5700