-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idmapping new files always nobody #31
Comments
Interesting that you can read and write the files without trouble, but creating files assigns the wrong ownership. You're 100% certain that you can write to the files via the NFS client? I only ask because it really sounds like the server is mapping your client user to Have you put the container into debug mode? It's a little verbose, but there's valuable output regarding what's happening with ID mapping. Might give us a clue. Could you post your debug logs so I could take a look? What is the underlying filesystem (on the server) of the NFS export? |
Hi, well I stand a little corrected... I can write the files because they are mode 644. Files that are 600 are not writeable despite showing as owned by my uid/gid. I think the server side is fine because I can see from the debug logs (I did have debug output enabled) that the id mapping is taking place. I can also see the mappings on the client side by doing So I think it's a client side issue but I am at a loss as to what it might be. I am using Arch Linux on the client and that uses the newer id resolver:
Here's something I tried:
And here's looking at the file:
On the server I see
The underlying filesystem on the server is zfs. I have just done another test on a cleanly installed centos8 server and has the same behaviours as described previously - everything looks great, I just can't write files even if they exist and show me as owning and having write access. I've also tried creating a few additional users. Same. I've attached a nfs server log from the session with the Centos client. update - I have just built a new NFS server in a VM, not using the container. It works fine. I will investigate more becasue I want to get this working in the container... |
Hi, just another little update, I took your it works fine. The only real difference is that my one uses I will continue to investigate and report back if I find anything useful. |
Progress! I'm really glad that you were able to find something to work off of, because I was stumped. I'm not familiar with gssproxy. If there's anything I can do to help you test, please let me know. And definitely please report any progress that you make! |
Hello, I have set up krb5 kerberised nfsv4 with id mapping. It would appear to work as expected except that files created on the client are owned by
nobody
.I have directory on the server, from the export point downwards it's owned by a user, say
foo
with uid and gid 2000. I have an attached client that has the export mounted and all the files appear within owned byfoo
(but the local uid/gid is 1000).The directory appears on the client
and
I can read and write existing files in the directory without problems.
So far, so good. Now for the problem...
If I try to create new files or directories into the directory (as user
foo
) I get permission denied. If Ichmod 777
the directory on the server then I can write to it but the files written are owned bynobody
.If I try as
root
the files are alsonobody
but I think that's due to root squash. The directory is exported like this:The text was updated successfully, but these errors were encountered: