You are not logged in.
Pages: 1
Dear Archers,
I am currently trying to setup an NFS share with ID mapping from a user named "child" on the host (uid=1003) to a user named "ben" on the client (uid=1000). But I cannot manage to make the idmap work.
Here is what i configured on the server:
/etc/exports
/srv/nfs 192.168.2.0/24(rw,sync,no_subtree_check,crossmnt,fsid=0)
/srv/nfs/media 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)
ls -lah /srv/nfs/
drwxr-xr-x 3 root root 4.0K Apr 24 06:53 .
drwxr-xr-x 5 root root 4.0K Apr 24 06:53 ..
drwxr-xr-x 2 child child 4.0K Apr 24 08:33 media
systemctl status nfs-server.service
* nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
Active: active (exited) since Wed 2019-04-24 09:29:18 CEST; 4min 39s ago
Process: 6634 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 6635 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Main PID: 6635 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 1599)
CGroup: /system.slice/nfs-server.service
Apr 24 09:29:18 crumb systemd[1]: Starting NFS server and services...
Apr 24 09:29:18 crumb systemd[1]: Started NFS server and services.
systemctl status nfs-idmapd.service
* nfs-idmapd.service - NFSv4 ID-name mapping service
Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static; vendor preset: disabled)
Active: active (running) since Wed 2019-04-24 09:29:34 CEST; 5min ago
Process: 6652 ExecStart=/usr/sbin/rpc.idmapd (code=exited, status=0/SUCCESS)
Main PID: 6653 (rpc.idmapd)
Tasks: 1 (limit: 1599)
CGroup: /system.slice/nfs-idmapd.service
`-6653 /usr/sbin/rpc.idmapd
Apr 24 09:29:34 crumb systemd[1]: Starting NFSv4 ID-name mapping service...
Apr 24 09:29:34 crumb rpc.idmapd[6653]: Setting log level to 0
Apr 24 09:29:34 crumb systemd[1]: Started NFSv4 ID-name mapping service.
cat /sys/module/nfsd/parameters/nfs4_disable_idmapping (same on client)
N
/etc/idmapd.conf (same on client)
[General]
Domain = crumb # my hostname
[UMICH_SCHEMA]
# server information (REQUIRED)
LDAP_server = ldap-server.local.domain.edu
# the default search base (REQUIRED)
LDAP_base = dc=local,dc=domain,dc=edu
On the client (except for identical configuration already mentioned for server):
systemctl status nfs-client.target
● nfs-client.target - NFS client services
Loaded: loaded (/usr/lib/systemd/system/nfs-client.target; disabled; vendor preset: disabled)
Active: active since Wed 2019-04-24 09:30:05 CEST; 12min ago
Apr 24 09:30:05 blackfly systemd[1]: Reached target NFS client services.
/etc/fstab
crumb:/srv/nfs/media /mnt/media nfs noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=5,x-systemd.idle-timeout=1min,users 0 0
crumb:/srv/nfs/media /mnt/media_2 nfs noauto,defaults,rsize=32768,wsize=32768,timeo=900,retrans=5,_netdev,users,rw 0 0
However when mounting /mnt/media or /mnt/media_2 I get:
ls -lah
drwxr-xr-x 4 ben ben 4,0K 24. Apr 08:21 .
drwxr-xr-x 13 ben ben 4,0K 24. Apr 07:14 ..
drwxr-xr-x 2 1003 1003 4,0K 24. Apr 08:33 media
drwxr-xr-x 2 1003 1003 4,0K 24. Apr 08:33 media_2
So idmap is not working. I hope for your advice.
Last edited by Lord Bo (2019-05-08 04:26:32)
Offline
Since no one can answer and I found another file sharing solution, I will mark this thread as done and concentrate on other things.
Offline
Pages: 1