Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I changed the user id of a user on an NFS client that mounts a volume from another server. My goal is to get the 2 users to have the same id, so that both servers can read and write to the volume.

I changed the id successfully on the client system, but now when I look at the NFS mount from that system, it reports the files being owned by the old id. So it looks like I need to "refresh" that mount.

I have found many instructions on how to remount, but each seems slightly different according to the type of system. Is there a simple command I can run to get the mounted volume to refresh so that it interprets the new user settings?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

It sounds like you need to change the ownership of the files -- not remount the share. The files will continue to be owned by the old UID since nothing has been done about that.

As root or with sudo: find /path/to/share/. -uid $OLDUID -exec chown $USER {} \;

That said, to answer the question you can remount a share on any Linux system with the remount option to the mount command.

mount -o remount /mountpoint

share|improve this answer
    
Thanks, but all I get from this, even after doing the remount, is: chown: changing ownership of `/myshare/abcxyz.def': Invalid argument –  user76177 Oct 11 '12 at 3:54
1  
We both answered your question (how to remount an NFS volume.) I'm sorry it didn't fix the problem but glad you were able to under your other question. –  Aaron Copley Oct 11 '12 at 14:48

If your mounted points are permanent- placed in /etc/fstab - you can run mount -a to re-read fstab, which is same as a refresh.

You could also use remount in case of a temporary mount

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.