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 03/02/2017, à 11:15

Daniel_T

[RESOLU] Fichiers du serveur non accessibles pour modification

Bonjour,
J'ai suivi le Tuto à la lettre (enfin je crois !) : https://doc.ubuntu-fr.org/tutoriel/un_s … artage_nfs
Mon PC client "voit" bien les fichiers partagés du serveur, mais l'accès est en lecture seule.
Je ne sais pas comme faire pour les rendre modifiables.

Voici quelques informations :

Sur le Serveur :
Ubuntu 14.04
IP : 192.168.1.17 (non fixe)
Répertoire partagé : home/daniel/Documents

Fichier : etc/export :
# /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)
#
home/daniel/Documents 192.168.1.31/ (rw,all_squash,anonuid=1000,anongid=1000,sync)

Fichier :  ect/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 "rpcbind" for the
# daemon name. See rpcbind(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

# Tout interdire sur  portmap, nfsd et mountd
portmap:ALL
nfsd:ALL
mountd:ALL

Fichier 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 "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
#Autoriser ce client à se connecter aux services (essentiellement : portmap, nfsd et mountd) :
portmap: 192.168.1.31
lockd: 192.168.1.31
nfsd: 192.168.1.31
mountd: 192.168.1.31
rquotad: 192.168.1.31
statd: 192.168.1.31

Sur le Client :
Ubuntu 16.04
IP : 192.168.1.31 (non fixe)
Point de montage : /home/daniel/Documents/Partage

Fichier : etc/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>
# / was on /dev/sdb6 during installation
UUID=55da89bc-1d03-498e-9a8e-2e60b24145dc /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=c84776ca-8eaa-4085-87ef-8924389623e4 none            swap    sw              0       0
/dev/disk/by-uuid/20E6498FE64965DE /mnt/20E6498FE64965DE auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
/dev/disk/by-uuid/FA70477170473423 /mnt/FA70477170473423 auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0

192.168.1.17:/home/daniel  /home/daniel/Documents/Partage nfs user,noauto 0 0

Merci de votre aide
DT

Dernière modification par Daniel_T (Le 08/02/2017, à 15:46)

Hors ligne

#2 Le 03/02/2017, à 12:05

Cyralien

Re : [RESOLU] Fichiers du serveur non accessibles pour modification

Bonjour,

Merci de bien vouloir utiliser les balise "code" pour les fichiers textes.

Pour avoir l'accès en écriture, il faut modifier le fichier /etc/exports sur le serveur. Voir cette page

Edit : il ne faudrait pas supprimer le / dans ton /etc/exports ?
home/daniel/Documents 192.168.1.31/(rw,all_squash,anonuid=1000,anongid=1000,sync)

Il faut aussi avoir des IPs fixent pour le client et le serveur.

Dernière modification par Cyralien (Le 03/02/2017, à 12:16)

Hors ligne

#3 Le 08/02/2017, à 15:47

Daniel_T

Re : [RESOLU] Fichiers du serveur non accessibles pour modification

Merci pour la réponse,
Elle m'a permis de constater que j'avais ajouter un espace de trop dans la ligne de code de mon /etc/exports
DT

Hors ligne