Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] NFS exports option "nohide" doesn't do anything?
Date: Sat, 03 Sep 2005 19:06:17
Message-Id: 4319F2E8.5040509@mid.email-server.info
1 Hello!
2
3 I'm having some trouble understanding the "nohide"
4 option in the exports file.
5
6 On the server, I've got:
7
8 /etc/exports:
9 /test blatt.bei.digitalprojects.com(async,rw,root_squash,no_subtree_check,nohide)
10
11 [20:53:35 alexander@server:~] $ ls -laR /test
12 /test:
13 insgesamt 3
14 drwxr-xr-x 3 root root 1024 3. Sep 20:48 .
15 drwxr-xr-x 30 root root 1024 3. Sep 20:48 ..
16 drwxr-xr-x 3 root root 1024 3. Sep 20:49 otherfs
17
18 /test/otherfs:
19 insgesamt 15
20 drwxr-xr-x 3 root root 1024 3. Sep 20:49 .
21 drwxr-xr-x 3 root root 1024 3. Sep 20:48 ..
22 -rw-r--r-- 1 root root 29 3. Sep 20:49 datei.txt
23 drwx------ 2 root root 12288 3. Sep 20:46 lost+found
24 ls: /test/otherfs/lost+found: Keine Berechtigung
25 [20:53:39 alexander@server:~] $ mount | grep test
26 /dev/mapper/daten3-lvol0 on /test/otherfs type ext2 (rw)
27
28 On the "blatt" client, I've done:
29
30 alexander@blatt ~ $ sudo mount -t nfs -v server:/test /mnt
31 server:/test on /mnt type nfs (rw,addr=192.168.1.3)
32
33 Then:
34
35 alexander@blatt ~ $ ls -laR /mnt/
36 /mnt/:
37 insgesamt 6
38 drwxr-xr-x 3 root root 1024 3. Sep 20:48 .
39 drwxr-xr-x 23 root root 4096 3. Sep 20:18 ..
40 drwxr-xr-x 2 root root 1024 3. Sep 20:48 otherfs
41
42 /mnt/otherfs:
43 insgesamt 2
44 drwxr-xr-x 2 root root 1024 3. Sep 20:48 .
45 drwxr-xr-x 3 root root 1024 3. Sep 20:48 ..
46
47 I now would have thought, that I'd see the "datei.txt"
48 in the "otherfs" directory, as the directory has been
49 exported with the "nohide" option.
50
51 Why don't I see "datei.txt"?
52
53 Also, why do I get the following error?
54
55 alexander@blatt ~ $ sudo mount -v -t nfs server:/test/otherfs /mnt
56 mount: server:/test/otherfs failed, reason given by server: Keine Berechtigung
57
58 In the server syslog, I get:
59
60 ==> ./user.log <==
61 Sep 3 20:56:24 server rpc.mountd: authenticated mount request from blatt.bei.digitalprojects.com:862 for /test/otherfs (/test)
62 Sep 3 20:56:24 server rpc.mountd: request to export directory /test/otherfs below nearest filesystem /test
63
64 Thanks,
65
66 Alexander Skwar
67 --
68 gentoo-user@g.o mailing list