Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/02/2012, à 13:20

PoK3uR

Configuration NFS : acces denied by server...

Bonjour,

Je viens de mettre en place un Serveur NFS, en suivant le tuto suivant : [doc]http://doc.ubuntu-fr.org/tutoriel/un_simple_partage_nfs[/doc]

Je n'arrive pas à monter le dossier sur le client. J'ai suivi le chapitre 6 du tuto pour résoudre le problème.

La fonction showmount me renvoie une valeur cohérente.

sudo mount -t nfs -o rw 192.168.1.50:/home/griffen/Téléchargements /home/griffen/_Partage
mount.nfs: acces denied by server while mounting 192.168.1.50:/home/griffen/Téléchargements

J'ai ensuite suivi Coexistance NFS Firewall
Je bloque lors de cette étape là :

Pour le service rpc rquotad, celà se trouve dans le fichier /etc/default/quota, et il faut modifier la ligne RPCRQUOTADOPTS de la facon suivante :

RPCRQUOTADOPTS="-p 32769"

Je ne trouve pas le fichier en question. Comment dois je faire ?

Je vous remercie par avance

Ci dessous les détails pas à pas de la configuration, si ça peut vous aidez à comprendre :

Config Exports:

# /etc/exports: the access control list for filesystems which may be exported
#        to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
# Dossier partagé :
#/home/griffen/Téléchargements/ 192.168.1.50/255.255.255.255(rw,all_squash,anonuid=1000,anongid=1000,sync)
#/home/griffen/Téléchargements/ Bureau(rw,all_squash,anonuid=1000,anongid=1000,sync)
/home/griffen/Téléchargements/ 192.168.1.50/255.255.255.255(rw,sync)

Config fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=f9dd71bf-c8df-4db3-a861-aa7484b266a4 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=b9895bd1-ac86-4b99-b501-b9841bc6a4b3 /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=fa565d5d-5166-48d6-a325-6067720ce36b none            swap    sw              0       0
#Configuration client NFS
192.168.1.50:/home/griffen/Téléchargements    /home/griffen/_Partage nfs     user,noauto    0    0

Config Hosts.deny

# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# 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.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
#
# Configuration du serveur NFS:
# Tout interdire sur  portmap, nfsd et mountd
portmap:ALL
nfsd:ALL
mountd:ALL

Config 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.
#
# Configuartion du Serveur NFS
# Autoriser ce client à se connecter aux services (essentiellement : portmap, nfsd et mountd) :
# portmap: Netbook MediaCenter
# lockd: Netbook MediaCenter
# nfsd: Netbook MediaCenter
# mountd: Netbook MediaCenter
# rquotad: Netbook MediaCenter
# statd: Netbook MediaCenter
portmap: 192.168.1.83
lockd: 192.168.1.83
nfsd: 192.168.1.83
mountd: 192.168.1.83
rquotad: 192.168.1.83
statd: 192.168.1.83

Config /usr/bin/Monter_le_partage_NFS :

#!/bin/bash
sleep 60
mount /home/griffen/_Partage

Hors ligne

#2 Le 23/02/2012, à 19:10

nimoinau

Re : Configuration NFS : acces denied by server...

salut,
ton fichier exports n'est pas bon, il y a des erreurs au niveau des adresses ip.

ton pc serveur est en ip 192.168.1.50 et ton pc client 192.168.1.83

or ton fichier exports renvoie le partage d'un dossier téléchargements vers ton ip serveur !!!!! et non pas client. l'erreur est là.

ton fichier exports doit ressembler à ca :

/home/griffen/Téléchargements/ 192.168.1.83/255.255.255.255(rw,sync)

Ubuntu 12.04

Hors ligne

#3 Le 23/02/2012, à 19:17

pires57

Re : Configuration NFS : acces denied by server...

si tu connais le nom du fichier que tu recherche utilise la commande find


Utilisateur d'Archlinux, Ubuntu et Kali Linux
Administrateur système et réseau spécialisé Linux.
LinkedIn

Hors ligne

#4 Le 24/02/2012, à 09:56

PoK3uR

Re : Configuration NFS : acces denied by server...

Salut,

Je vous remercie de vos différentes réponses, je vais tester ça des que je peux. La j'arrive plus à lancé ma session Linux hmm

Hors ligne