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've got a Linux server (Centos 5.6) that needs to automount home directories from a Windows (Server 2008) NFS share using Kerberos. The share mounts (with the nobody user and group) if authentication is turned off. However, if the -o sec=krb5 flag is passed, I get mount.nfs: permission denied.

As root, I used kinit to get a ticket, and klist tells me that it's a valid ticket. Googling the error didn't give much, as it seems to be a bit of a catch-all. Nothing useful was found in any of the logs I looked in. Root access is set to allowed on the Windows share.

Because of the sharing from Windows thing, a lot of the resources saying to change server settings don't apply as directly.

Any ideas for getting this to work?

share|improve this question
Are you sure that windows can export in NFS4? AFAIK you need NFS4 to use kerberos. –  wazoox Apr 6 '12 at 21:00
Sorry, it's NFS3. Windows - to my knowledge - only supports NFS3. However, the options page for NFS in Windows lists KRB5 and KRB5i as options, so I assumed that it worked. –  Ethan Apr 7 '12 at 22:08

1 Answer 1

OK, after a bit of research I've found this article that explains how to achieve what you're looking for with a Solaris client. By looking at the client part of this other documentation maybe you could get the whole stuff working...

Apparently from what I've seen from looking around making NFS3 under linux authenticate against kerberos should be possible, contrary to what I thought; however information is incredibly scarce.

In the worst case what's preventing you from using CIFS mount? After it's quite well supported, and documentation abunds.

share|improve this answer
We tried getting CIFS to work, and while we could get it to mount properly, we were unable to get the PAM module necessary for credentials to work on CentOS 5. I'll be able to test this tomorrow. –  Ethan Apr 10 '12 at 17:38
Looked into this, and didn't see anything configured differently. It seems like Windows is misbehaving here, and of course I don't have access to that server. (We can watch the connect come in to Windows and have it do nothing with it) –  Ethan Apr 11 '12 at 12:41
Hmm, I've heard that the Unix Services sometimes need to be restarted, it may be worth a try... –  wazoox Apr 11 '12 at 14:05

Your Answer


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.