Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th July 2010, 04:32 PM
GreggBz Offline
Registered User
 
Join Date: Jul 2010
Posts: 2
linuxchrome
Chown and NFS between fc13 systems.

Hi Fedora Community

I'm having problems with chown on a mounted nfs volume between two fc13 systems.
I can mount the volume no problem. I can create files as root, but I cannot change their ownership.

I get this error:
chown: changing ownership of `test': Invalid argument

The line in the nfs server export file is:

/backup/client 192.168.0.1(rw,anonuid=65534,anongid=65534,no_root _squash)

The server's kernel:
2.6.33.3-85.fc13.x86_64

The client's kernel:
2.6.33.4-95.fc13.i686.PAE

The client and the server are on the same subnet with no firewalls running. SELinux is set to permissive on both systems.

Maybe I'm missing something simple?
Reply With Quote
  #2  
Old 29th July 2010, 05:49 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Re: Chown and NFS between fc13 systems.

anonuid=65534,anongid=65534 are unnecessary - those are the default values.


I have a similar config and I don't have any trouble doing chown.

Could you post a complete example.
touch a file, ls -l it, try to chown it.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 29th July 2010, 08:15 PM
GreggBz Offline
Registered User
 
Join Date: Jul 2010
Posts: 2
linuxchrome
Re: Chown and NFS between fc13 systems.

Here you are:
Code:
[root@raven ~]# cd /mnt/rsync/
[root@raven rsync]# touch test
[root@raven rsync]# ls -l test
-rw-r--r--. 1 nobody nobody 0 Jul 29 14:13 test
[root@raven rsync]# chown voip:voip test
chown: changing ownership of `test': Invalid argument
[root@raven rsync]#
My troubles seem to come from my ignorance of NFSv4, which is completely different than old NFS.

http://blogs.sun.com/tdh/entry/chown...sername_spaces
http://nfsv4.bullopensource.org/doc/..._migration.pdf

In NFSv4, the UID is changed in a different way. It's done with SETATTR with the name and the domain. With NFSv3, it basically just changes the UID and GID to the corresponding number in the clients user table. Since the user voip does not exist on the server in my example, it fails. I'm not quite sure how to solve this problem since I'm using this NFS server to back up a large number of clients with lots of different users that the server is not going to know about. Until now, the clients that had older distrabutions worked fine. The first one with NFSv4 fails.

It looks like I could have fun with LDAP to maintain a user database.
I'm still looking for a HOWTO, or better yet, an easy solution that let's me mount the server in "NFSv3" mode or something.

---------- Post added at 02:15 PM CDT ---------- Previous post was at 01:24 PM CDT ----------

There is a vers=3 option in the mount command that has solved my issue.

Ugh.
Reply With Quote
  #4  
Old 29th July 2010, 10:28 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfedorafirefox
Re: Chown and NFS between fc13 systems.

isn't name/uid mapping what rpcidmapd does?

i tend to create the users on all my systems with the same uid's for just this kind of thing (rsync has similar issues). not practical on a large network without ldap or somesuch i guess.

i justed tested creating a file on an nfs4 mount and the uid/gid were correct when doing an ls -l on the server, but then for that user the uid/gid are the same on both machines, so doesn't prove much.

Last edited by sej7278; 29th July 2010 at 10:32 PM.
Reply With Quote
  #5  
Old 12th May 2012, 07:19 AM
kurtseifried Offline
Registered User
 
Join Date: May 2012
Location: Placebo
Posts: 1
linuxfirefox
Re: Chown and NFS between fc13 systems.

The solution is to ensure that idmapd is enabled on both the server and the client. In Fedora 16:

# systemctl enable nfs-idmap.service
# systemctl start nfs-idmap.service
Reply With Quote
  #6  
Old 13th May 2012, 03:03 PM
lightman47 Offline
Registered User
 
Join Date: Apr 2009
Posts: 266
linuxfirefox
Re: Chown and NFS between fc13 systems.

There's a syntax for chown I'd not seen before - hmm. I'd always used:
chown {ownername} test
Reply With Quote
Reply

Tags
chown, fc13, nfs, systems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC13 2..33.5-124.fc13.x86_64 locks up on boot dpawson Using Fedora 13 1st July 2010 02:48 PM
kernel-2.6.32.2-15.fc13.x86_64 and akmod-nvidia-190.53-1.fc13.x86_64 chepioq Fedora 13 Development Branch 12 9th January 2010 04:45 PM
I did chown mso:mso /*/* martin.sourada Fedora Focus 5 24th June 2007 03:16 PM
#*! chown ./ -R HELP bluejuice Using Fedora 3 23rd August 2005 12:01 PM


Current GMT-time: 22:31 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat