Newsgroups: comp.os.linux.announce
From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
Subject: NFS and symlinks bug and workaround
Message-ID: <ann-9980.770755986@cs.cornell.edu>
Date: Sat, 4 Jun 1994 18:53:19 GMT
Approved: linux-announce@tc.cornell.edu (Matt Welsh)

There is a weird problem which may bite you if you try to set
up a Linux box either as NFS client or NFS server:  Under
certain circumstances, you get "permission denied" errors
on all symlinks.

Example:

Machine server exports its /usr/bin readonly to client, in server's
/etc/exports, there is the line:

/usr/bin        client(ro)

Say, /usr/bin/vi is a symlink to /usr/bin/elvis on the server:

server:/usr/bin# ls -l vi elvis
-rwxr-xr-x   1 root     bin        103428 Oct 17  1993 elvis*
lrwxrwxrwx   1 root     root            5 May  5 01:55 vi -> elvis*

Then, when you try the same thing on the client, you get a "permission
denied" error:

client:/usr/bin# ls -l vi
ls: vi: Permission denied
lrwxrwxrwx   1 root     root         1024 May  4 23:55 vi

A friend told me of a workaround:  remove root's membership from all
supplementary groups on both client and server, (i.e.  delete all
occurences of "root" after the last colon in /etc/group) and restart
your networking stuff.

It works, but don't ask me why :-)
--
Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.

--
Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
Be sure to include Keywords: and a short description of your software.
