Reload the nfs kernel module afterwards to apply the options.Īlso make sure, idmapd is running on your client. On your client machine, create a file /etc/modprobe.d/nf with the following contents: options nfs nfs4_disable_idmapping=0 Disable NFS, apply and re-enable (+apply) it afterwards in the Synology's control centre to reload nfds. Then, still on the Synology, edit the /etc/nf and set the Domain to your ITET-PHO if not already set. Find the line SYNOLoadModules $KERNELMODULEĪnd add the following line after that: echo "N" > /sys/module/nfsd/parameters/nfs4_disable_idmapping For that, you have to edit the file /usr/syno/etc/rc.sysv/S83nfsd.sh on the Synology. (EDIT: More detailed explanation.)įirst, you have to enable idmapping after loading the NFS service. This bug report and the linked thread suggest this is normal behaviour of idmapd when not using Kerberos for some reason. I managed to get the correct usernames to show up on my client when listing files, but creating new files always creates them as user nobody because the Synology doesn't map anything in that case. Eventually I would like to automatically map the Synology users to LDAP users on the Linux machine.ĭisclaimer: ID mapping without a Kerberos server only works halfway with NFSv4, it seems. How can I make the id mapping (at least static) work on Debian? ID mapping should work with Synology in general. Oct 5 15:11:19 sisyphous rpc.idmapd: #011-> closed /run/rpc_pipefs/nfs/clntfc/idmap Oct 5 15:11:19 sisyphous rpc.idmapd: Stale client: fc Oct 5 15:11:19 sisyphous rpc.idmapd: #011-> closed /run/rpc_pipefs/nfs/clntfd/idmap Oct 5 15:11:19 sisyphous rpc.idmapd: Stale client: fd Oct 5 15:11:19 sisyphous rpc.idmapd: #011-> closed /run/rpc_pipefs/nfs/clntfe/idmap Oct 5 15:11:19 sisyphous rpc.idmapd: Stale client: fe Oct 5 15:11:19 sisyphous rpc.idmapd: New client: fe Oct 5 15:11:19 sisyphous rpc.idmapd: New client: fd Oct 5 15:11:07 sisyphous rpc.idmapd: Opened /run/rpc_pipefs/nfs/clntfb/idmapĪnd when I mount the export with mount.nfs4 cerberous:/volume1/homes /mnt/test I get: Oct 5 15:11:19 sisyphous rpc.idmapd: New client: fc Oct 5 15:11:07 sisyphous rpc.idmapd: New client: fb Oct 5 15:11:07 sisyphous rpc.idmapd: New client: fa Oct 5 15:11:07 sisyphous systemd: Started LSB: NFS support files common to client and server. Oct 5 15:11:07 sisyphous rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel Oct 5 15:11:07 sisyphous rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel Oct 5 15:11:07 sisyphous rpc.idmapd: Expiration time is 600 seconds. Oct 5 15:11:07 sisyphous rpc.idmapd: libnfsidmap: loaded plugin /lib/x86_64-linux-gnu/libnfsidmap/static.so for method static Oct 5 15:11:07 sisyphous rpc.idmapd: libnfsidmap: processing 'Method' list Oct 5 15:11:07 sisyphous rpc.idmapd: libnfsidmap: Realms list: 'ITET-PHO' Oct 5 15:11:07 sisyphous nfs-common: rpc.idmapd: libnfsidmap: loaded plugin /lib/x86_64-linux-gnu/libnfsidmap/static.so for method static Oct 5 15:11:07 sisyphous nfs-common: rpc.idmapd: libnfsidmap: processing 'Method' list Oct 5 15:11:07 sisyphous nfs-common: rpc.idmapd: libnfsidmap: Realms list: 'ITET-PHO' Oct 5 15:11:07 sisyphous nfs-common: Starting NFS common utilities: statd idmapdrpc.idmapd: libnfsidmap: using domain: ITET-PHO Oct 5 15:11:07 sisyphous rpc.idmapd: libnfsidmap: using domain: ITET-PHO Oct 5 15:11:07 sisyphous sm-notify: Already notifying clients Exiting! Oct 5 15:11:07 sisyphous sm-notify: Version 1.2.8 starting Oct 5 15:11:07 sisyphous rpc.statd: Version 1.2.8 starting Oct 5 15:11:07 sisyphous systemd: Starting LSB: NFS support files common to client and server. Oct 5 15:11:07 sisyphous systemd: Stopped LSB: NFS support files common to client and server. Oct 5 15:11:07 sisyphous nfs-common: Stopping NFS common utilities: idmapd statd. This is when doing service nfs-common restart: Oct 5 15:11:07 sisyphous systemd: Stopping LSB: NFS support files common to client and server. In the log-file I see that idmap is doing something. However, when I mount the shared directory, I just see the UID numbers from the Synology: drwxr-xr-x 4 1566874442 1566573057 4096 Okt 5 10:21 erikhe-301898Īlso all the other UIDs are shown instead of nobody. All other users should be mapped to nobody. So I attempt to statically map the user erikhe on the Synology, which is in the domain ITET-PHO to the local user erik. # set your own domain here, if id differs from FQDN minus hostname There I have the following configuration of /etc/nf: On another Linux machine (Debian Wheezy), I want to mount this export using idmapping. I have a Synology DiskStation (DSM 6.0.2) that exports shared directories via NFSv4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |