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

Notices

Reply
 
Search this Thread
Old 02-04-2013, 05:26 PM   #1
tzone
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 = 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

Example:
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)


Problem:
*) Intermittenly, the user's home directory on /nethome (and its sub dirs and files) changed to "nobody" or the UID number "17011733"

Example:

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


Reply


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 03:09 AM
[SOLVED] Options for granting uid:gid file ownership olewolf Programming 5 06-26-2012 12:53 AM
NFS and Samba Share Ownership Issue worm5252 Linux - Server 3 12-16-2009 06:58 PM
Active Directory groups via Samba/Winbind? dsdonut Linux - Newbie 3 01-23-2009 03:26 PM
Winbind and Samba 3.0 -- duplicate UID's phil1076 Linux - General 4 12-16-2003 02:53 PM


All times are GMT -5. The time now is 05:22 AM.

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