Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-04-2013, 06:26 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 5

Rep: Reputation: Disabled
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 =
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):
id user01

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

or sometime

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....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS/Samba Ownership on Red Hat 6.3 Stannley Linux - Newbie 3 11-30-2012 04:09 AM
[SOLVED] Options for granting uid:gid file ownership olewolf Programming 5 06-26-2012 01:53 AM
NFS and Samba Share Ownership Issue worm5252 Linux - Server 3 12-16-2009 07:58 PM
Active Directory groups via Samba/Winbind? dsdonut Linux - Newbie 3 01-23-2009 04:26 PM
Winbind and Samba 3.0 -- duplicate UID's phil1076 Linux - General 4 12-16-2003 03:53 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration