Re: Error en compartir un directori via NFS
Hola Joan, M'ho has fet provar entre dos portàtils que manego (normalment jo comparteixo amb CIFS / SMB). Et falta afegir al servidor permisos per a la/les màquines de la teva xarxa: Afegeix les línies de sota al /etc/hosts.allow # /etc/hosts.allow: list of hosts that are allowed to access the system. # See the manual pages hosts_access(5) and hosts_options(5). # # Example:ALL: LOCAL @some_netgroup # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper, as well as for # rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8) # for further information. # lockd: 192.168.1.0/255.255.255.0 rquotad: 192.168.1.0/255.255.255.0 mountd: 192.168.1.0/255.255.255.0 statd: 192.168.1.0/255.255.255.0 Després: #service nfs-kernel-server restart Alerta perquè NFS no usa contrasenyes. Ja ens diràs! On 22 June 2013 17:19, Joan wrote: > Cada cop que provo de compartir fitxers entre el meu portàtil i el fixe > em torno ximple... Benauradament només passa cada 3-4 anys... > > Bueno, al provar-ho ara em dona un error el client: > > mount.nfs:access denied by server while mounting > > I al servidor puc veure: > > #tail /var/log/messages > [21145.725193] nfsd: last server has exited, flushing export cache > [21147.369536] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state > recovery directory > [21147.369966] NFSD: starting 90-second grace period > > I també... > > root@localhost:/home/joan# rpcinfo -p >program vers proto port service > 104 tcp111 portmapper > 103 tcp111 portmapper > 102 tcp111 portmapper > 104 udp111 portmapper > 103 udp111 portmapper > 102 udp111 portmapper > 1000241 udp 41262 status > 1000241 tcp 41419 status > 132 tcp 2049 nfs > 133 tcp 2049 nfs > 134 tcp 2049 nfs > 1002272 tcp 2049 > 1002273 tcp 2049 > 132 udp 2049 nfs > 133 udp 2049 nfs > 134 udp 2049 nfs > 1002272 udp 2049 > 1002273 udp 2049 > 1000211 udp 45933 nlockmgr > 1000213 udp 45933 nlockmgr > 1000214 udp 45933 nlockmgr > 1000211 tcp 56465 nlockmgr > 1000213 tcp 56465 nlockmgr > 1000214 tcp 56465 nlockmgr > 151 udp 57074 mountd > 151 tcp 40971 mountd > 152 udp 42418 mountd > 152 tcp 40386 mountd > 153 udp 46555 mountd > 153 tcp 36359 mountd > > root@localhost:/home/joan# grep NFSD /boot/config-`uname -r` > CONFIG_NFSD=m > CONFIG_NFSD_V2_ACL=y > CONFIG_NFSD_V3=y > CONFIG_NFSD_V3_ACL=y > CONFIG_NFSD_V4=y > > root@localhost:/home/joan# more /etc/hosts.allow > i al hosts.deny > No hi tinc res, tot està comentat, com el defecte... > > root@localhost:/home/joan# more /etc/hosts > 127.0.0.1 localhost > ::1 localhost ip6-localhost ip6-loopback > fe00::0 ip6-localnet > ff00::0 ip6-mcastprefix > ff02::1 ip6-allnodes > ff02::2 ip6-allrouters > > root@localhost:/home/joan# exportfs > /home/joan/ajoan/personal/economia/emma > 192.168.1.0/24 > > > Algú sap que pot passar? > > > -- > > Joan Cervan i Andreu > http://personal.calbasi.net > > "El meu paper no és transformar el món ni l'home sinó, potser, el de ser > útil, des del meu lloc, als pocs valors sense els quals un món no val la > pena viure'l" > A. Camus > > i pels que teniu fe: > "Déu no és la Veritat, la Veritat és Déu" > Gandhi > > > -- > To UNSUBSCRIBE, email to debian-user-catalan-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/51c5c06f.5060...@calbasi.net > > -- -- Salutacions...Josep --
Re: Error en compartir un directori via NFS
On 22/06/13 17:19, Joan wrote: Cada cop que provo de compartir fitxers entre el meu portàtil i el fixe em torno ximple... Benauradament només passa cada 3-4 anys... Bueno, al provar-ho ara em dona un error el client: mount.nfs:access denied by server while mounting I al servidor puc veure: #tail /var/log/messages [21145.725193] nfsd: last server has exited, flushing export cache [21147.369536] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [21147.369966] NFSD: starting 90-second grace period I també... root@localhost:/home/joan# rpcinfo -p program vers proto port service 104 tcp111 portmapper 103 tcp111 portmapper 102 tcp111 portmapper 104 udp111 portmapper 103 udp111 portmapper 102 udp111 portmapper 1000241 udp 41262 status 1000241 tcp 41419 status 132 tcp 2049 nfs 133 tcp 2049 nfs 134 tcp 2049 nfs 1002272 tcp 2049 1002273 tcp 2049 132 udp 2049 nfs 133 udp 2049 nfs 134 udp 2049 nfs 1002272 udp 2049 1002273 udp 2049 1000211 udp 45933 nlockmgr 1000213 udp 45933 nlockmgr 1000214 udp 45933 nlockmgr 1000211 tcp 56465 nlockmgr 1000213 tcp 56465 nlockmgr 1000214 tcp 56465 nlockmgr 151 udp 57074 mountd 151 tcp 40971 mountd 152 udp 42418 mountd 152 tcp 40386 mountd 153 udp 46555 mountd 153 tcp 36359 mountd root@localhost:/home/joan# grep NFSD /boot/config-`uname -r` CONFIG_NFSD=m CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3=y CONFIG_NFSD_V3_ACL=y CONFIG_NFSD_V4=y root@localhost:/home/joan# more /etc/hosts.allow i al hosts.deny No hi tinc res, tot està comentat, com el defecte... root@localhost:/home/joan# more /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters root@localhost:/home/joan# exportfs /home/joan/ajoan/personal/economia/emma 192.168.1.0/24 Algú sap que pot passar? Suposo que t'ha faltat comentar el més important... 1. Què hi tens el /etc/exports del server? 2. Què hi tens al /etc/fstab o cóm invoques a mount? 3. Quins paquets de nfs tens al server i al client? Et comento el que jo tinc funcionant (amb nfsv3) perquè ho puguis comparar amb lo teu: Per a 1 (comparteixo per a tot el rang un recurs nfsv3): /home/user 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash) Per a 2 (ip i path del server i també indico nfsv3): 192.168.1.30:/home/user /home/user nfs vers=3,rsize=8192,wsize=8192 0 0 Per a 3: - Al servidor calen nfs-common i nfs-kernel-server. - Al client nomès cal nfs-common. Amb això, faig un exportfs -a i un mount /home/user i voilà. Salut, jors -- To UNSUBSCRIBE, email to debian-user-catalan-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51c5c5e8.8050...@enchufado.com
Error en compartir un directori via NFS
Cada cop que provo de compartir fitxers entre el meu portàtil i el fixe em torno ximple... Benauradament només passa cada 3-4 anys... Bueno, al provar-ho ara em dona un error el client: mount.nfs:access denied by server while mounting I al servidor puc veure: #tail /var/log/messages [21145.725193] nfsd: last server has exited, flushing export cache [21147.369536] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [21147.369966] NFSD: starting 90-second grace period I també... root@localhost:/home/joan# rpcinfo -p program vers proto port service 104 tcp111 portmapper 103 tcp111 portmapper 102 tcp111 portmapper 104 udp111 portmapper 103 udp111 portmapper 102 udp111 portmapper 1000241 udp 41262 status 1000241 tcp 41419 status 132 tcp 2049 nfs 133 tcp 2049 nfs 134 tcp 2049 nfs 1002272 tcp 2049 1002273 tcp 2049 132 udp 2049 nfs 133 udp 2049 nfs 134 udp 2049 nfs 1002272 udp 2049 1002273 udp 2049 1000211 udp 45933 nlockmgr 1000213 udp 45933 nlockmgr 1000214 udp 45933 nlockmgr 1000211 tcp 56465 nlockmgr 1000213 tcp 56465 nlockmgr 1000214 tcp 56465 nlockmgr 151 udp 57074 mountd 151 tcp 40971 mountd 152 udp 42418 mountd 152 tcp 40386 mountd 153 udp 46555 mountd 153 tcp 36359 mountd root@localhost:/home/joan# grep NFSD /boot/config-`uname -r` CONFIG_NFSD=m CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3=y CONFIG_NFSD_V3_ACL=y CONFIG_NFSD_V4=y root@localhost:/home/joan# more /etc/hosts.allow i al hosts.deny No hi tinc res, tot està comentat, com el defecte... root@localhost:/home/joan# more /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters root@localhost:/home/joan# exportfs /home/joan/ajoan/personal/economia/emma 192.168.1.0/24 Algú sap que pot passar? -- Joan Cervan i Andreu http://personal.calbasi.net "El meu paper no és transformar el món ni l'home sinó, potser, el de ser útil, des del meu lloc, als pocs valors sense els quals un món no val la pena viure'l" A. Camus i pels que teniu fe: "Déu no és la Veritat, la Veritat és Déu" Gandhi -- To UNSUBSCRIBE, email to debian-user-catalan-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51c5c06f.5060...@calbasi.net