› Foros › PC › Software libre
mount: 192.168.1.34:/media/datos failed, reason given by server: Permiso denegado
# /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) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/media/datos/ 192.168.1.33/255.255.255.0(sync,rw,no_root_squash)
portmap: 192.168.1.0/255.255.255.0
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
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
cd /usr/src/linux
make menuconfig
$ zcat /proc/config.gz | grep NFS
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_NFS_COMMON=y
root@shark:/home/ismael# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 34675 nlockmgr
100021 3 tcp 34675 nlockmgr
100021 4 tcp 34675 nlockmgr
100005 1 udp 701 mountd
100005 1 tcp 704 mountd
100005 2 udp 701 mountd
100005 2 tcp 704 mountd
100005 3 udp 701 mountd
100005 3 tcp 704 mountd
100024 1 udp 32770 status
100024 1 tcp 32982 status
whale pasteles # rpcinfo -p
programa vers proto puerto
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 3910 status
100005 1 udp 711 mountd
100005 1 tcp 714 mountd
100005 2 udp 711 mountd
100005 2 tcp 714 mountd
100005 3 udp 711 mountd
100005 3 tcp 714 mountd
root@shark:/home/ismael# showmount --exports
mount clntudp_create: RPC: Program not registered
mount clntudp_create: RPC: Program not registered
Now check to make sure you can see it from the client. On the client, type rpcinfo -pserver where server is the DNS name or IP address of your server.
whale ~ # rpcinfo -p 192.168.1.34
No hay ningún programa remoto registrado.
root@shark:/home/ismael# /etc/init.d/nfs-kernel-server start
* Exporting directories for NFS kernel daemon... exportfs: /etc/exports [2]: No 'sync' or 'async' option specified for export "localhost:/home/ismael/".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
portmap: 192.168.1.33/255.255.255.0
lockd: 192.168.1.33/255.255.255.0
rquotad: 192.168.1.33/255.255.255.0
mountd: 192.168.1.33/255.255.255.0
statd: 192.168.1.33/255.255.255.0
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
/home/ismael/ localhost(rw) 192.168.1.33/255.255.255.0(sync,rw,no_root_squash)