Problem mit NIS + NFS

Post Reply
Message
Author
Mischael Schill

Problem mit NIS + NFS

#1 Post by Mischael Schill »

Meine Systeme:
Server:
Debian Linux: irgendeine aktuelle potatoe

Client:
SuSE 8.0, aktuellstes Update

Problem:
Alles läuft soweit glatt: Ich kann auf das NFS-Verzeichnis zugreifen (/home) und auch die User und Gruppen werden übertragen. Aber: Ich hab im NFS-Drectory nur Zugriffsberechtigungen als "others". Daraufhin hab ich mal eine Textfile erstellt und herausgefunden dass er mit einer ganz anderen UID auf das NFS-Directory zugreift, als ich eingeloggt bin. Ein Vergleich der UIDs mit hilfer von id user ergab aber, das das NIS soweit funktioniert.

An was liegt das?
Danke

nano

Re: Problem mit NIS + NFS

#2 Post by nano »

Hi,
wie sieht denn der Eintrag in der /etc/exports aus?
Möglicherweise ist dort angegeben, daß die IDs übersetzt werden sollen.

Schau dir dazu mal die manpage von exports(5) an. Under dem Abschnitt <b>User ID Mapping</b> findest du genauere Inforamtionen.

Viel Erfolg,
nano

Mischael Schill

Re: Problem mit NIS + NFS

#3 Post by Mischael Schill »

/etc/exports:
/home (rw, map_nis=mschill.ch)

/etc/fstab (Client):
...
192.168.1.1:/home /home nfs defaults 0 0

nano

Re: Problem mit NIS + NFS

#4 Post by nano »

Hi Mischael,
vielleicht liegts an der option map_nis.
Brauchst du die wirklich? Einfach mal entfernen - probieren kost nix <img src="http://www.pl-forum.de/UltraBoard/Images/Wilk.gif" border="0" align="middle">
Bei mir läuft das ganze auch ohne (bei mir gäbe es die Option aber auch gar nicht - steht zumindest nichts in der Manpage)

Google sagt dazu folgendes:

EXPORTS (5)
NFS file systems being exported

SYNOPSIS

/etc/exports

DESCRIPTION

...

map_nis

This option enables NIS-based uid/gid mapping. For instance, when the server encounters the uid 123 on the server, it will obtain the login name associated with it, and contact the NFS client's NIS server to obtain the uid the client associates with the name.

In order to do this, the NFS server must know the client's NIS domain. This is specified as an argument to the map_nis options, e.g.

map_nis=foo.com

<b>Note that it may not be sufficient to simply specify the NIS domain here</b>; you may have to take additional actions before nfsd is actually able to contact the server. If your distribution uses the NYS library, you can specify one or more NIS servers for the client's domain in /etc/yp.conf . If you are using a different NIS library, you may have to obtain a special ypbind (8) daemon that can be configured via yp.conf .

Vielleicht hilfts weiter.
Viel Erfolg,
nano

Mischael Schill

Re: Problem mit NIS + NFS

#5 Post by Mischael Schill »

Ich habs mal mit und mal ohne probiert. Leider kein Unterschied :(.

nano

Re: Problem mit NIS + NFS

#6 Post by nano »

Hast du denn nach jeder Änderung die Dateisysteme auch wieder neu exportiert?
Die /etc/exportfs wird nur beim Start des nfsd ausgelesen.

Du kannst das aber mit <b>exportfs -r</b> erzwingen. (siehe auch man exportfs)

Gruß,
nano

Post Reply