Non ho mai visto un /etc/exports fatto cosi', ti posso fat vedere il mio: # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). /var/cache/apt/archives gateway(rw) e l'esempio preso da man 5 exports: / master(rw) trusty(rw,no_root_squash) /projects proj*.local.domain(rw) /usr *.local.domain(ro) @trusted(rw) /home/joe pc001(rw,all_squash,anonuid=150,anongid=100) /pub (ro,insecure,all_squash) Dove master, trusty, pc001 e amici vari sono i client e quelle tra parentesi sono le opzioni. Ciao. On Thu, May 30, 2002 at 05:13:11PM +0200, Marco Bizzantino wrote: > ho un problema con un server nfs e non capisco da cosa dipenda. > O meglio, dall'errore e' ovvio che il problema sta nel server, ma non so > come risolverlo. > Andiamo con ordine: > la macchina server ha su freebsd 4.5. > > ------------------------------- > bash-2.05a# rpcinfo -p > program vers proto port > 100000 2 tcp 111 portmapper > 100000 2 udp 111 portmapper > 100005 3 udp 1023 mountd > 100005 3 tcp 1023 mountd > 100005 1 udp 1023 mountd > 100005 1 tcp 1023 mountd > 100003 2 udp 2049 nfs > 100003 3 udp 2049 nfs > 100003 2 tcp 2049 nfs > 100003 3 tcp 2049 nfs > 100021 1 udp 1009 nlockmgr > 100021 3 udp 1009 nlockmgr > 100021 4 udp 1009 nlockmgr > 100021 1 tcp 1022 nlockmgr > 100021 3 tcp 1022 nlockmgr > 100021 4 tcp 1022 nlockmgr > 100024 1 udp 1001 status > 100024 1 tcp 1021 status > bash-2.05a# > ---------------------------------------- > > e il file /etc/exports e' > > ---------------------------------------- > #The following examples export /usr to 3 machines named after ducks, > #/home and all directories under it to machines named after dead rock > stars > #and, finally, /a to 2 privileged machines allowed to write on it as root. > #/usr huey louie dewie > #/home -alldirs janice jimmy frank > #/a -maproot=0 bill albert > # > # You should replace these lines with your actual exported filesystems. > > /home -maproot=0 -rw darkstar > # Questo aggiunto per prova > /usr/local -maproot=0 -rw -network=192.168.0 -mask=255.255.255.0 > ----------------------------------------- > > In /etc/host.allow ho aggiunto > > ----------------------------------------- > # Portmapper is used for all RPC services; protect your NFS! > # (IP addresses rather than hostnames *MUST* be used here) > portmap : 192.168.0.1/255.255.255.0 : allow > portmap : 192.168.0.2/255.255.255.0 : allow > portmap : ALL : deny > ----------------------------------------- > > A mio avviso quindi tutto e' configurato nel modo giusto. > Perche' quindi quando dal client ottengo l'errore > > {Darkstar} [root - 01:45pm] mount -t nfs atlantis:/home/ /mnt/nfs/ > mount: atlantis:/home/ failed, reason given by server: Permission denied > > Oppure l'errore > > {Darkstar} [root - 04:49pm] mount -t nfs atlantis:/usr/ /mnt/nfs/ > mount: RPC: Timed out > > > Guardando i log di sistema, compare questo errore: > > [...] > May 30 16:43:20 atlantis mountd[62]: bad exports list line /usr -alldirs > darkstar > May 30 16:50:51 atlantis mountd[62]: bad exports list line /home > May 30 16:59:38 atlantis mountd[62]: mount request denied from 192.168.0.2 > for /usr > May 30 16:59:57 atlantis last message repeated 6 times > [...] > > Ma l'errore non riesco proprio a trovarlo in /etc/exports... > > Io non capisco proprio dove sbaglio. > > Grazie a chiunque mi aiuta :) > > Bizza > > p.s. sul server non gira nessun firewall e nel client il kernel supporta > il fs nfs. > > > -- > Coitus interruptus: > A jerky movement following the words (by either sex partner) > "I want to have your child." > > > > <========---------- > Prima di scrivere in m-list per favore leggi il regolamento > http://lugge.ziobudda.net/soci/manifesto.htm#list > > Archivio delle e-mail postate in lista > //www.freelists.org/archives/lugge/ > > ----------========> > Incontri in sede: marted? 15:00-18:00 e sabato 9:30-12.30 > -- ----------------------------------------------------- Daniele Venzano Senior member of the Linux User Group Genova (LUGGe) Web: http://digilander.iol.it/webvenza/ LUGGe: http://www.lugge.net <========---------- Prima di scrivere in m-list per favore leggi il regolamento http://lugge.ziobudda.net/soci/manifesto.htm#list Archivio delle e-mail postate in lista //www.freelists.org/archives/lugge/ ----------========> Incontri in sede: martedì 15:00-18:00 e sabato 9:30-12.30