*BSD News Article 20258


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!spool.mu.edu!uwm.edu!msuinfo!uchinews!cs.umd.edu!afterlife!blackbird.afit.af.mil!dsacg3.dsac.dla.mil!dcsc.dla.mil!cp01395
From: cp01395@dcsc.dla.mil (Duane L. Rezac)
Newsgroups: comp.os.386bsd.misc
Subject: pcnfsd and printer mounting
Message-ID: <1893@dcsc.dla.mil>
Date: 31 Aug 93 14:42:43 GMT
Organization: Defense Construction Supply Center, Columbus
Lines: 48


I have been working on installing pcnfsd on my 386bsd system in
order to allow mounting of a printer. 

I am running 386bsd , patchlevel 0.2.4

when trying to mount a printer (lp2) from my pc using PC-NFS 3.5c,
I get an access denied by server error message.

I have tracked it down to this: 

when pcnfsd gets a print mount request, it creates a subdir in the
spool directory, and tells the pc to mount it.  
The problem is, that mountd will not let the pc mount a subdir of an
exported directory.  

A posting to comp.os.386bsd.bugs informed me that this is proper for
mountd to do this.

If I add the subdir to the export table, it allows me to mount the
printer and use it.

Example: 

exports: contains /tmp, moutable to everyone.
pcnfsd - spool dir set to /tmp

my pc name is cscppspc1

If I try to mount the printer on the 386bsd pc,  pcnfsd creates the 
directory /tmp/cscppspc1 , but the mount request fails due to
mountd's refusal to allow the mount.

If I add /tmp/cscppspc1 to the /etc/exports file, then I can mount
and use the printer.

On our larger, bsd based mini's we can mount the printer without
having anything but the spool dir in the exports file.

Any suggestion on how to resolve this? 

Duane L. Rezac
drezac@dcsc.dla.mil
-- 
+-----------------------+---------------------------------------------------+
| Duane L. Rezac |These views are my own, and NOT representitive of my place|
|    drezac@dcsc.dla.mil                                  of Employment.    |
+-----------------------+---------------------------------------------------+