I have NFS share, looks like it almost works, however I have permission issue.
On a server:
/etc/exports
/etc/zfs/exports
ZFS settings
/etc/rc.conf
On a client:
/etc/rc.conf
Mount command:
My issues are:
1. Client doesn't see permissions.
Server
Client
2. When I copy, every file copied returns an error "No name and/or group mapping for uid,guid1001, 1001). 1001 is me and it exists on both server and client. I can see on server, that files have correct permissions.
I suppose, the issue #2 is consequence of issue #1. Because client can't see correct permissions, it's confused and emits false error. I can't say, kerberized NFS setup is well documented, so maybe I made some mistakes?
On a server:
/etc/exports
Code:
V4: /srv -sec=krb5i:krb5p
/etc/zfs/exports
Code:
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/srv/abishai -sec=krb5i:krb5p
/srv/abishai/darktable -sec=krb5i:krb5p
ZFS settings
Code:
zdata/abishai/darktable aclmode discard default
zdata/abishai/darktable aclinherit restricted default
/etc/rc.conf
Code:
nfs_server_enable=YES
nfs_server_flags="-t"
nfsv4_server_only=YES
nfsuserd_enable="YES"
gssd_enable="YES"
On a client:
/etc/rc.conf
Code:
nfs_client_enable=YES
nfsuserd_enable="YES"
gssd_enable="YES"
Mount command:
mount -o nfsv4,sec=krb5i beta:/abishai/darktable /home/abishai/darktable
My issues are:
1. Client doesn't see permissions.
Server
Code:
# file: /srv/abishai/darktable/
# owner: abishai
# group: abishai
owner@:rwxp--aARWcCos:-------:allow
group@:r-x---a-R-c--s:-------:allow
everyone@:r-x---a-R-c--s:-------:allow
Client
Code:
# file: /home/abishai/darktable/
# owner: nobody
# group: nogroup
owner@:rwxp--aARWcCos:-------:allow
group@:r-x---a-R-c--s:-------:allow
everyone@:r-x---a-R-c--s:-------:allow
2. When I copy, every file copied returns an error "No name and/or group mapping for uid,guid1001, 1001). 1001 is me and it exists on both server and client. I can see on server, that files have correct permissions.
I suppose, the issue #2 is consequence of issue #1. Because client can't see correct permissions, it's confused and emits false error. I can't say, kerberized NFS setup is well documented, so maybe I made some mistakes?