Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kerberos and nfs4 mount failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
da5idii
n00b
n00b


Joined: 09 Aug 2006
Posts: 8
Location: San Antonio

PostPosted: Thu Apr 03, 2008 6:49 am    Post subject: kerberos and nfs4 mount failure Reply with quote

I am trying use kerberos and nfsv4 but i can not seem to get it to work, when whenever i try to mount i get:
mount.nfsv4: Permission denied,
the system log read:
rpc.gssd: WARNING: Failed to create krb5 context for user with uid 0 for server XXX
rpc.gssd: WARNING: Failed to create krb5 context for user with uid 0 with credentials cache FILE:/tmp/krb5cc_machine_XXX for server XXX
rpc.gssd: WARNING: Failed to create krb5 context for user with uid 0 with any credentials cache for server XXX

Can anybody help please
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Mon Aug 11, 2008 6:29 pm    Post subject: Reply with quote

I'm having this problem too...
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Tue Aug 12, 2008 7:12 am    Post subject: Reply with quote

You need to add keys to your local keytab. On the machine having the problem, run:
Code:
kadmin -q 'ktadd -e des-cbc-crc:normal nfs/hostname.fqdn@REALM'

Specifying the encryption type may or may not be necessary. It's always worked for me when I've specified it, and sometimes has and sometimes hasn't when I haven't.

If it still doesn't work, please give the output of:
Code:
hostname
cat /etc/hosts
cat /etc/krb5.conf
klist -ek

_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Tue Aug 12, 2008 7:49 am    Post subject: Reply with quote

Thanks, I had done that already (I've had this working for a year!)

The problem was that after a reboot, rpc.svcgssd had not restarted. I've read elsewhere that it sometimes crashes.

/etc/init.d/nfs restart solved the problem.
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum