LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-11-2006, 01:06 PM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
NFS4 mount showing wrong ownership


Okay... I have an NFS4 server running. I have a data partition that is being "shared" through NFS4 as well as through Samba. Samba is joined at the hip with Active Directory through winbind & nsswitch. I'm also using POSIX acls on the filesystem to supplement the usual user+group+everyone bits.

However, I'm having a wierd problem. When I mount the export, I see the files properly, but the ownership is wrong.

Take a look:

drwxrwxr-x 4 4294967294 4294967294 96 2006-07-26 17:45 clipart
drwxrwxr-x 5 4294967294 4294967294 120 2006-08-04 12:12 docs
drwxrwxr-x 9 4294967294 4294967294 232 2006-09-04 01:39 ftp
drwxrwxr-x 9 4294967294 4294967294 216 2006-09-06 14:25 homes
drwxrwxr-x 4 4294967294 4294967294 224 2006-09-04 01:48 public

The owning user should be root, and the owning group should be netadmins.

I have matched the users and groups (with matching uids and gids) on the workstation I'm mounting it from. I also mounted this share locally (on the server) and got the same results, so I know it isn't the workstation.

Thinking that POSIX acls might be to blame, I reset (removed extra acls) several of the folders in this partition, and remounted the NFS4 export, and got the same results. Every file, regardless of its true ownership, shows this.

Now the odd thing is, the security permissions seem to be coming across right. Meaning, on the groups that are owned by netadmins, I can write to (I want the export rw), like I should be able, and I cannot write to those that I don't have ownership to. In other words, this UID/GID thing appears to be display only.

I then realized that idmapd wasn't running, so I started it and remounted the NFS4 export. Now the files show owned by "nobody" and "nobody" (user, group, respectively).

However, as the data is important, I don't want to create file corruption, so I want to fix this 'bug' if I can.

Any ideas?

Last edited by tisource; 09-11-2006 at 01:20 PM.
 
Old 09-11-2006, 02:02 PM   #2
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Okay, I fixed the problem.

The idmapd daemon wasn't running on the server either. Everything works great now.
 
  


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
tar output file ownership wrong davidsrsb Slackware 2 07-08-2006 12:26 PM
'df -h' showing wrong free space on disk? Cdzin Slackware 4 03-16-2006 02:35 PM
FC4 HDD showing wrong size h00ty Fedora - Installation 5 08-20-2005 12:10 PM
Changing ownership of vfat mount maamold Linux - Software 2 02-25-2005 03:27 AM
df showing wrong output samac Slackware 9 12-08-2004 03:38 PM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
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