Score:1

NFS stale file handle for regular user but not root

kz flag

I've installed freeipa container on a Ubuntu server and an NFS server on the server itself. When I mount the NFS directory on a client machine or even the server itself, I can view the mounted directory as root. However, as a regular user, I get stale file handle. I am not using SELinux, and it happens with autofs as well.

My /etc/exports:

/home   @netibglabservers(rw,sync,no_subtree_check,sec=krb5:krb5i:krb5p)

My mount command:

sudo mount golgi.******.ac.il:/home /mnt/test

As a regular user:

ls /mnt/test/<br/>
ls: cannot open directory '/mnt/test/': Stale file handle

As root:

sudo ls /mnt/test<br/>
ibg  ibglocal  localadmin  yuval  yuvallocal

Credentials:

klist<br/>
Ticket cache: KEYRING:persistent:96600001:krb_ccache_aGcxW72<br/>
Default principal: yuval@******.AC.IL<br/>
<br/>
Valid starting       Expires              Service principal<br/>
12/27/2021 16:38:59  12/28/2021 16:38:56  nfs/golgi.******.ac.il@******.AC.IL<br/>
12/27/2021 16:38:56  12/28/2021 16:38:56  krbtgt/******.AC.IL@******.AC.IL<br/>
<br/>

Any help would be greatly appreciated,
Yuval.

cn flag
Is the user id existing on both the server and client? did you try setting up an anongid/anonuid option?
YuvGM avatar
kz flag
I'm using freeipa to manage the identities centrally. I'm able to log in to the user on the client and server and the id-s are the same and derived from the central server.
cn flag
What are the rights on the source /home and /mnt/test directory (output of `stat`?)
YuvGM avatar
kz flag
I don't have access to the server until Monday. I'll post info on Monday.
YuvGM avatar
kz flag
Hi I've reinstalled the server, and reconnected the clients. Things seem to be working correctly. I think the problem was the credentials of the users, but thanks for all the help.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.