Ubuntu Pastebin

Paste from Seven_Six_Two at Thu, 9 Feb 2017 03:47:23 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
--- SERVER (Ubuntu server in virtualbox)
/etc/exports

/export 192.168.168.0/24(rw,fsid=0,insecure,no_subtree_check,sync)
/export/www 192.168.168.0/24(rw,no_subtree_check,sync)


/etc/idmapd.conf

[General]

Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs

[Mapping]

Nobody-User = nobody
Nobody-Group = nogroup

/etc/hosts.deny
rpcbind mountd nfsd statd lockd rquotad : ALL

/etc/hosts.allow
rpcbind mountd nfsd statd lockd rquotad : 127.0.0.1 192.168.168.3

$ rpcinfo -p `hostname`
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp  58021  mountd
    100005    1   tcp  38807  mountd
    100005    2   udp  37830  mountd
    100005    2   tcp  36263  mountd
    100005    3   udp  52490  mountd
    100005    3   tcp  51316  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049
    100227    3   tcp   2049
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    2   udp   2049
    100227    3   udp   2049
    100021    1   udp  40450  nlockmgr
    100021    3   udp  40450  nlockmgr
    100021    4   udp  40450  nlockmgr
    100021    1   tcp  37547  nlockmgr
    100021    3   tcp  37547  nlockmgr
    100021    4   tcp  37547  nlockmgr


---CLIENT (Linux Mint Sarah)

/etc/idmapd.conf

[General]

Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs

[Mapping]

Nobody-User = nobody
Nobody-Group = nogroup

MOUNT COMMAND
sudo mount -t nfs4 -o proto=tcp,port=2049 webdev1.local:/www /home/fathead/Workspace/vm/Webdev1/www

MOUNT output
webdev1.local:/www on /home/fathead/Workspace/vm/Webdev1/www type nfs4 (rw,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.168.3,local_lock=none,addr=192.168.168.81)

sudo rpc.idmapd -f -vv
rpc.idmapd: libnfsidmap: using domain: myrealdomain.ca
rpc.idmapd: libnfsidmap: Realms list: 'MYREALDOMAIN.CA' 
rpc.idmapd: libnfsidmap: loaded plugin /lib/x86_64-linux-gnu/libnfsidmap/nsswitch.so for method nsswitch

rpc.idmapd: Expiration time is 600 seconds.
rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel
rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel
rpc.idmapd: New client: 0
rpc.idmapd: New client: 1
rpc.idmapd: New client: 11
rpc.idmapd: Opened /run/rpc_pipefs/nfs/clnt11/idmap
rpc.idmapd: New client: 14
rpc.idmapd: New client: 2
Download as text