home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wupost!monsanto.com!albert.monsanto.com!nghoff
- From: nghoff@albert.monsanto.com (Norman G. Hoffman)
- Subject: Re: How does one use the Translucent File Service?
- Message-ID: <1992Sep11.211008.9145@tin.monsanto.com>
- Sender: news@tin.monsanto.com (USENET News System)
- Organization: Monsanto Company
- X-Newsreader: Tin 1.1 PL5
- References: <1992Sep8.160328.25148@tin.monsanto.com>
- Date: Fri, 11 Sep 1992 21:10:08 GMT
- Lines: 85
-
- ORIGINAL REQUEST:
-
- > Can someone who's running TFS tell me how they did it?
-
- THANKS TO:
-
- frans@kiwi.uia.ac.be (Francois Staes)
-
- SOLUTION:
-
- Francois wrote:
-
- > The entry you've to add to your inetd.conf file is:
- >
- > tfsd/1-9 dgram rpc/udp wait root /usr/etc/tfsd tfsd
- > tfsd/1-9 stream rpc/tcp nowait root /usr/etc/tfsd tfsd
-
- OBSERVATIONS:
-
- After I added these entries to inetd.conf, I was able to mount TFS
- filesystem /usr/openwin/include in front of /usr/include as follows:
-
- >mount -t tfs /usr/openwin/include /usr/include
-
- Then I tried some commands from a non-root account. The command
- "ls /usr/include/X11" worked, even though X11 is really in
- /usr/openwin/include. Great! -- just what it's supposed to do.
-
- However, when I tried the command "ls /usr/include/make", I received the
- error message "/usr/include/make unreadable", even though the make directory
- really resides in /usr/include. A little investigation (see next) showed
- TFS was trying to create a "make" directory in the TFS filesystem.
- This failed because the non-root account didn't have write access to
- /usr/openwin/include.
-
- As root, I unmounted, changed /usr/openwin/include to allow
- other-write access, and remounted. The non-root account was
- then able to issue "ls /usr/include/make."
-
- Again as root, I unmounted /usr/include and looked at /usr/openwin/include.
- Here's what I found:
-
- >pwd
- /usr/openwin/include
-
- >ls
- .tfs_info Xol/ help/ olgx/ wire/
- NeWS/ config/ images/ pm/ xview/
- X11/ desktop/ jot/ portable/ xvps/
- Xau@ dga/ make/ server/
-
- >cat .tfs_info
- VERSION 2
- /tmp_mnt/Tfs_native/usr/include
- 0
-
- >ls make
- .tfs_info
-
- > cat make/.tfs_info
- VERSION 2
- /tmp_mnt/Tfs_native/usr/include/make
- 0
-
- The following files had been added:
-
- /usr/openwin/include/.tfs_info -- added by the mount command
- /usr/openwin/include/make -- added by the ls command
- /usr/openwin/include/make/.tfs_info -- added by the ls command
-
- As an aside, if I first listed /usr/openwin/make from root, TFS
- successfully created /usr/openwin/include/make, after which the
- non-root account could list the directory.
-
- Then I thought, maybe if I mount the TFS filesystem read-only, TFS
- won't try to create directories there. But no, mounting read-only
- didn't help.
-
- So, as far as I can see, the user must have write access to the TFS
- filesystem, which means this way of using TFS (for /usr/openwin/include)
- is not supported. This is probably all explained in the copious
- documentation, wherever it is. I guess I'll have to break down and ask Sun.
-
- Norm Hoffman
- nghoff@bb1t.monsanto.com
-