I faced another little admin challenge today. I needed to share certain directory on one server with a different server where I haven’t have root privileges. I setup everything and I got following behaviour:

clienthost:/net/examplehost$ cd /net/examplehost/space
-bash: cd: /net/examplehost/space: Permission denied
clienthost:/net/examplehost $ ls -la
total 3
dr-xr-xr-x   2 root     root           2 Apr 12 06:22 .
dr-xr-xr-x   3 root     root           3 Apr  9 20:35 ..
dr-xr-xr-x   1 root     root           1 Apr 12 06:22 space

Export config file:

# cat /etc/exports
/space	clienthost(rw)

Solution is to uncomment following line:

# Turn off v4 protocol support
RPCNFSDARGS="-N 4"

at /etc/sysconfig/nfs and restart nfs.

Napsat komentář