PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : komme auf meinem nfs server nicht in die unterverzeichnisse



St-R-and
22.09.04, 12:58
Hallo Leute

ich hab volgendes problem:
ich habe meine "daten-festplatten" unter /data gemounted
/data/data1 = hdb1
/data/data2 = dhb2
usw.
wenn ich nun data als nfs-verzeichniss frei gebe kann ich nur data1, data2,... sehen aber nicht darauf zugreifen.
wenn ich aber data1 als nfs-verzichniss frei gebe kann ich auf alle unterverzichniss zugreifen den ich auch das lese-recht gegeben habe.
ich versteh nicht warum das nicht mit data geht
bei data, data1, data2, .... sind die zugriffsrechte alle gleich.
hatt jemand eine idee oder einen link der mir wieter hilft?

pest
22.09.04, 15:09
Ist wohl n Problem das der export nur für die aktuell gemountete platte gilt und diverse mounts im darunter liegenden Verzeichnis nicht mit exportiert werden.
Hab deswegen auch /mnt/backup /mnt/gentoo etc. alles seperat freigeben müssen.

Aber mag sein das es auch anders geht.

Gruß Juius

Terran Marine
22.09.04, 15:14
Die Idee von pest klingt sinnvoll,

alternativ zufällig dieser Parameter gesetzt :

noaccess
This makes everything below the directory inacces*
sible for the named client. This is useful when
you want to export a directory hierarchy to a
client, but exclude certain subdirectories. The
client's view of a directory flagged with noaccess
is very limited; it is allowed to read its
attributes, and lookup `.' and `..'. These are also
the only entries returned by a readdir.

Gruß
Terran

pest
22.09.04, 15:50
So hab grad auch nochmal in die "man exports" geschaut und siehe da!

http://unixhelp.ed.ac.uk/CGI/man-cgi?exports+5

Suche da mal direkt nach "nohide" und et voila!

nohide This option is based on the option of the same name provided in
IRIX NFS. Normally, if a server exports two filesystems one of
which is mounted on the other, then the client will have to
mount both filesystems explicitly to get access to them. If it
just mounts the parent, it will see an empty directory at the
place where the other filesystem is mounted. That filesystem is
"hidden".

Setting the nohide option on a filesystem causes it not to be
hidden, and an appropriately authorised client will be able to
move from the parent to that filesystem without noticing the
change.

However, some NFS clients do not cope well with this situation
as, for instance, it is then possible for two files in the one
apparent filesystem to have the same inode number.

The nohide option is currently only effective on single host
exports. It does not work reliably with netgroup, subnet, or
wildcard exports.

This option can be very useful in some situations, but it should
be used with due care, and only after confirming that the client
system copes with the situation effectively.

The option can be explicitly disabled with hide.

Viel Spaß!

Gruß Julius

St-R-and
22.09.04, 16:13
danke ich schau mal ob ich damit was anfangen kann

gruß steve

pest
22.09.04, 16:15
gib dann mal bitte bescheid wenn das gefunzt hat.

Thx!

Grup Julius

St-R-and
22.09.04, 16:50
es würde funktioniren wenn ich nicht das ganze netzwerk als client eintragen würde.
siehe: http://www.linuxfibel.de/nfs_srv.htm
wie es scheint mus ich noch einen dns-server installieren. wenn ich ne IP ohne Wildcards verwende geht es auch nicht.
das dauert halt noch ne wiele bis ich dir bescheid sagen kann ob es funst. ;-)
hab halt gedacht wenn es mit ftp funst dann gehts auch mit nfs

danke für den tip steve