LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-27-2012, 09:34 PM   #1
Stannley
Member
 
Registered: Jul 2010
Posts: 35

Rep: Reputation: 0
NFS/Samba Ownership on Red Hat 6.3


Hi

I am experiencing an issue with NFS and/or Samba on Red Hat 6.3.

I have an NFS share mounted from our DEV machine to the QA machine called transfers. A user created a folder on the DEV machine via a Samba share and the permissions / ownership were set correctly on that machine.

On the QA machine the contents of the transfer folder have incorrect ownership - the user is correct but the group is incorrectly showing as nobody instead of domain users. See below:

Code:
drwxrwxr-x. 8 proivck    nobody        4.0K Nov 28 11:20 .
drwxr-xr-x. 5 proiv      domain users  4.0K Oct 29 11:34 ..
-rw-rw-r--. 1 proivck    nobody        221K Sep 13 10:01 aug2012.vpx
-rw-rw-r--. 1 simon.tann nobody        1.3M Oct 30 09:32 ccn_for_v7.vpx
-rw-rw-r--. 1 proivck    nobody        693K Oct 12 13:28 ccn_v7.vpx
drwxrwxr-x. 3 proivck    nobody        4.0K Sep  3 10:28 dev
drwxrwxr-x. 2 simon.tann nobody        4.0K Nov 28 09:18 lastimp
-rw-rw-r--. 1 proivck    nobody        662K Sep  3 10:29 npost1_from_qa2.vpx
drwxrwxr-x. 3 proivck    nobody        4.0K Sep  3 10:28 qa
drwxrwxr-x. 3 proivck    nobody        4.0K Nov 27 13:45 release
-rw-rw-r--. 1 proivck    nobody        221K Sep 13 10:32 sep2012.vpx
drwxrwxr-x. 2 proivck    nobody        4.0K Sep 12 15:32 shared_data
-rw-rw-r--. 1 proivck    nobody        725K Sep  3 10:28 taps8437.vpx
-rw-rw-r--. 1 proivck    nobody       1008K Sep  3 10:29 taps8459.vpx
drwxrwxr-x. 2 proivck    nobody        4.0K Sep  3 10:29 tmp
where proivck is a local user and simon.tann is my network user.

If I shown a file in the transfer folder to have the domain users group it does not return an error but remains as nobody.

I am able to create files in the transfer folder from windows explorer but cannot delete them afterwards and they have the nobody group.

Files I create in my home directoy via windows explorer are created with the correct group, as are files in other samba shares.

Does anyone know what to change and where to get the client machine to recognise the group correctly?

Cheers

Simon
 
Old 11-29-2012, 07:48 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Simon, did you check, is there SGID set on transfer folder on QA machine? Once check permissions of transfer folder and see if there's "s" set in group's permission column on tranfer folder. Also check what's transfer folder's group.
 
Old 11-30-2012, 12:14 AM   #3
Stannley
Member
 
Registered: Jul 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shivaa View Post
Simon, did you check, is there SGID set on transfer folder on QA machine? Once check permissions of transfer folder and see if there's "s" set in group's permission column on tranfer folder. Also check what's transfer folder's group.
Hi Shiva

The permissions on DEV for the transfer folder are as follows:

Code:
drwxrwxr-x.  8 proivck domain users 4.0K Nov 28 11:20 transfer
As you can see, I have not set SGID.

Cheers

Simon
 
Old 11-30-2012, 03:09 AM   #4
Stannley
Member
 
Registered: Jul 2010
Posts: 35

Original Poster
Rep: Reputation: 0
I have gotten this working - it appears to have been a problem with the domain in idmap although I do not know why - both machines are in the same domain so I should not have had to override the default setting. I have now set the domain and it is working correctly.

Thanks

Simon
 
  


Reply

Tags
groups, nfs, red hat, samba


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
NFS and Samba Share Ownership Issue worm5252 Linux - Server 3 12-16-2009 06:58 PM
NFS between Ubuntu and Red Hat dgermann Linux - Networking 5 11-06-2006 09:12 PM
Problem Installing Red Hat 9 via NFS jjp001 Linux - Newbie 0 09-15-2003 09:15 AM
NFS + Red Hat 8 + me = no love Dark_Helmet Linux - Networking 8 05-07-2003 09:23 PM
nfs client red hat computera Linux - Networking 1 09-26-2002 11:55 PM


All times are GMT -5. The time now is 07:04 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