Hi all,
I am having a strange issue with a FreeBSD nfs server and CentOS nfs client.
The FreeBSD NFS server contains all data that are mounted by CentOS web servers.
NFS server Configuration:
/etc/exports:
NFS client Configuration /etc/idmapd.conf:
Now, on the client we mount everything under the /home directory. On a first look everything appears to be ok:
But for some reason the local user admin has no write access to those directories.
Also, directories that are owned by the local webserver user apache are not writable from the webserver.
If I create a file as the local user admin then the file has owner nobody and group admin when it should be admin:admin
So, for some reason, the group ownerships are honored while the user are not.
Could anyone shed some light on here?
I am having a strange issue with a FreeBSD nfs server and CentOS nfs client.
The FreeBSD NFS server contains all data that are mounted by CentOS web servers.
NFS server Configuration:
Code:
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
nfsuserd_flags="-domain mydomain.inside"
rpcbind_enable="YES"
mountd_enable="YES"
mountd_flags="-r"
Code:
/storage -alldirs -maproot=root -network 192.168.10.0/24
V4: /
Code:
[General]
#Verbosity = 0
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
Domain = mydomain.inside
Now, on the client we mount everything under the /home directory. On a first look everything appears to be ok:
Code:
root@members1 home]# ls -alh
total 38K
drwxr-xr-x 5 nobody nobody 5 Apr 27 2014 .
dr-xr-xr-x. 23 root root 4.0K Apr 3 07:22 ..
drwx------ 2 admin admin 7 Oct 20 07:38 admin
drwx------ 2 admin admin 2 Feb 19 2013 lost+found
drwxr-xr-x 27 admin admin 32 Mar 2 11:26 sites
But for some reason the local user admin has no write access to those directories.
Also, directories that are owned by the local webserver user apache are not writable from the webserver.
If I create a file as the local user admin then the file has owner nobody and group admin when it should be admin:admin
So, for some reason, the group ownerships are honored while the user are not.
Could anyone shed some light on here?