Directory / file ownership intermittenly revert back to nobody or UID (Winbind? Samba? NFS?)
To all linux masters,
I have a problem with our RHEL6 servers.
Probably best i inform the condition and configuration first.
1. All of them are joined to windows AD domain, with this smb.conf:
workgroup = mydomain
password server = *
realm = mydomain.com
security = ads
idmap uid = 17000000-33554431
idmap gid = 17000000-33554431
template homedir = /nethome/%U
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = false
idmap backend = idmap_rid:mydomain=17000000-33554431
2. User's home directory is on NFS share (called /nethome).
The NFS server is set on computer 1 and all the other RHELs map to this NFS share.
3. Domain users are now able to login using their AD credential: yes
4. When new domain user login, home folder for the user is created on /nethome : yes
drwxr-xr-x. 7 user01 domainusers 4096 Jan 22 12:42 user01
5. All users have the same UID across all the RHELs: yes
Example (checkec on all RHELs):
Result: uid=17011733(user01) gid=17000513(domainusers) groups=17000513(domainusers)
*) Intermittenly, the user's home directory on /nethome (and its sub dirs and files) changed to "nobody" or the UID number "17011733"
drwxr-xr-x. 7 nobody domainusers 4096 Jan 3 13:36 user01
drwxr-xr-x. 7 17011733 domainusers 4096 Jan 3 13:36 user01
*) at the same time, on other RHELs, the same /nethome/user01 home folder can:
- sometime can have a correct ownership (showing user01 domainusers)
- sometime can have UID number 17011733 or "nobody"
So when there is a problem with the same directory (NFS share home folder), the ownership will be different across all the RHELs that map to the same NFS share.
I suspect it must have to do with the local service on each machine.
Is it winbind problem? samba problem? NFS problem?
Anyone has a clue?
Thanks in advance....