*BSD News Article 54178


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.mid.net!sbctri.tri.sbc.com!newspump.wustl.edu!news.ecn.bgu.edu!psuvax1!news.math.psu.edu!chi-news.cic.net!newsfeed.internetmci.com!btnet!dispatch.news.demon.net!demon!pencotts.demon.co.uk
From: Andrew Gordon <andrew.gordon@net-tel.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: NFS as anonymous user
Date: Wed, 08 Nov 1995 23:58:47 GMT
Lines: 14
Message-ID: <815875127.11705@pencotts.demon.co.uk>
References: <Pine.A32.3.91.951108102041.42992A-100000@dsu2.deltast.edu>
NNTP-Posting-Host: pencotts.demon.co.uk
X-NNTP-Posting-Host: pencotts.demon.co.uk
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
MIME-Version: 1.0
To: strippe@dsu2.deltast.edu
X-URL: news:Pine.A32.3.91.951108102041.42992A-100000@dsu2.deltast.edu
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

Stacy Trippe <strippe@dsu2.deltast.edu> wrote:
>Can someone tell me how to configure FreeBSD to allow "anonymous" NFS logins?


If you mean, for example, using PCNFS with the default uid of -2, then you
can't do it just by configuration.  If you really want this, you will have to
modify mountd which explicitly tests for -2 and forbids it.
(in 2.0.5R, src/sbin/mountd/mountd.c line 355)

But why not just set up an additional user account (with no password) and let
people mount under that ID instead?  If security was an issue, you wouldn't be
allowing anonymous mounts in the first place...