Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!usenet.eel.ufl.edu!warwick!bsmail!inferno.cs.bris.ac.uk!hedley
From: hedley@inferno.cs.bris.ac.uk (David Hedley)
Subject: Re: NFS as anonymous user
Message-ID: <DI0v8G.Mz9@uns.bris.ac.uk>
Sender: usenet@uns.bris.ac.uk (Usenet news owner)
Nntp-Posting-Host: inferno.cs.bris.ac.uk
Reply-To: David.Hedley@bris.ac.uk
Organization: Computer Science Dept. University of Bristol, England
X-Newsreader: TIN [version 1.2 PL2]
References: <Pine.A32.3.91.951108102041.42992A-100000@dsu2.deltast.edu> <im4tw8nqxr.fsf@waldrog.cs.uidaho.edu>
Date: Tue, 14 Nov 1995 07:24:16 GMT
Lines: 34
Faried Nawaz (fn@uidaho.edu) wrote:
: In article <Pine.A32.3.91.951108102041.42992A-100000@dsu2.deltast.edu> Stacy Trippe <strippe@dsu2.deltast.edu> writes:
: $ Can someone tell me how to configure FreeBSD to allow "anonymous" NFS logins?
: nfs doesn't do logins. i'm assuming you want to allow mounts by non-root
: users; the command for that is
: mountd -n
: (read the mountd man page)
Actually it was a perfectly valid question. The answer is that even with the
'-n' option for mountd, it still won't allow mounts from 'anonymous' users
(with uid -2). The solution is to either log in first using the standard PCNFS
commands, or to modify line 355 of mountd.c to remove the test for uid -2:
i.e.
if ((uid != 0 && root_only) || uid == -2) {
becomes
if (uid != 0 && root_only) {
Hope this helps
David
--
David Hedley (David.Hedley@bris.ac.uk)
http://www.cs.bris.ac.uk/~hedley/
finger hedley@cs.bris.ac.uk for PGP key
Computer Graphics Group | University of Bristol | UK
*** All opinions expressed are mine and mine alone ***